Re: [gnome-db] Use of C++ reserved words as variable names causes problems.
- From: Vivien Malerba <vmalerba gmail com>
- To: bas driessen xobas com
- Cc: GNOME-DB List <gnome-db-list gnome org>
- Subject: Re: [gnome-db] Use of C++ reserved words as variable names causes problems.
- Date: Tue, 24 Jan 2006 09:23:39 +0100
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.
Thanks,
Vivien
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]