[Gtk-sharp-list] patch fixing override issue for
gtk-sharp/generator/Method.cs
Martin Willemoes Hansen
mwh@sysrq.dk
Tue, 26 Aug 2003 23:05:42 +0200
On Tue, 2003-08-26 at 22:57, Mike Kestner wrote:
> 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?
Your are right, this was a first goer just to fix the problem.
> 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.
Sounds like a good idea!
I think I can do that tomorrow if its okay with you.
The problem I had was with the keyword base.
Great to hear from you again :o)
--
Martin Willemoes Hansen
--------------------------------------------------------
E-Mail mwh@sysrq.dk Website mwh.sysrq.dk
IRC MWH, freenode.net
--------------------------------------------------------