You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Juergen Hermann <jh...@web.de> on 2002/11/07 12:15:04 UTC

Indentifier collision witg Python

Hi, Tinny!

xercesc/util/regx/RegxParser.hpp defines T_CHAR and T_STRING as enum 
constants (BTW, why do you assign explicit numbers, instead of letting 
the computer do it?).

Unfortunately, Python #define's the same identifiers, and we all know 
how aware of scopes #define is.

So, could we rename those symbols (I think they're rather internal 
ones, so no library user should notice that) to be mixed-cased, to 
avoid name clashes with CPP symbols?

My proposal would be   T_CHAR ==> T_Char etc.



Ciao, Jürgen

--
Jürgen Hermann, Developer
WEB.DE AG, http://webde-ag.de/



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: Indentifier collision witg Python

Posted by Tinny Ng <tn...@ca.ibm.com>.
please open a bugzilla bug.  thx!
----- Original Message -----
From: "Juergen Hermann" <jh...@web.de>
To: "Xerces-C++ Development" <xe...@xml.apache.org>
Sent: Thursday, November 07, 2002 6:15 AM
Subject: Indentifier collision witg Python


Hi, Tinny!

xercesc/util/regx/RegxParser.hpp defines T_CHAR and T_STRING as enum
constants (BTW, why do you assign explicit numbers, instead of letting
the computer do it?).

Unfortunately, Python #define's the same identifiers, and we all know
how aware of scopes #define is.

So, could we rename those symbols (I think they're rather internal
ones, so no library user should notice that) to be mixed-cased, to
avoid name clashes with CPP symbols?

My proposal would be   T_CHAR ==> T_Char etc.



Ciao, Jürgen

--
Jürgen Hermann, Developer
WEB.DE AG, http://webde-ag.de/



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org