Re: [gnome-db] Use of C++ reserved words as variable names causes problems.



On Mon, 2006-01-30 at 09:35 +0100, Vivien Malerba wrote:
2006/1/24, Vivien Malerba <vmalerba gmail com>:
> 2006/1/24, Bas Driessen <bas driessen xobas com>:
> >  Hello,
> >
> >  I noticed that in recently added code, 2 reserved words are used from C++
> > environment:
> >
> >  gda-dict.h:128:  'typename'
> >  gda-query-parsing.h:48 'delete'
> >
> >  If 'delete' and 'typename'  are used in a mixed C / C++ environment,
> > linking to the libgda library is not possible. If I change delete and
> > typename to something else all works fine.
> >
> >  Any problems if I change variables named 'typename' to 'type_name' and
> > 'delete' to 'del' ? Instead of 'del', probably the word 'remove' is better,
> > but that means than many function names that have the word 'delete' in it
> > have to be changed as well.
> >
>
> Ok, I'll make the changes you propose myself since I've been working
> on that code lately and it's not yet in CVS.

It's now in CVS.

Thanks, all compiles OK again!

Bas.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]