[Gtk-sharp-list] patch fixing override issue for gtk-sharp/generator/Method.cs

Mike Kestner mkestner@ximian.com
Tue, 26 Aug 2003 15:57:50 -0500


On Thu, 2003-08-21 at 05:23, Martin Willemoes Hansen wrote:

> I took a stab at it but I could not make it work :( Instead I patched
> generator/StructBase.cs to check if the field name is a Keyword and
> uppercase the first letter if it is.

I would rather approach this from a different angle. What exactly is the
keyword conflict you are having?  Surely they don't use all those
keywords you are mangling with the patch, do they?

We already have a MangleName method in the Parameters.cs file to deal
with reserved words as parameter names.  I'd rather promote that method
to the SymbolTable so it can be used by StructBase and Parameters both
instead of duplicating the functionality in StructBase.

-- 
Mike Kestner <mkestner@ximian.com>