[C++-sig] Pyste bug with unnamed enums

Nicodemus nicodemus at esss.com.br
Wed Feb 18 23:31:52 CET 2004


Niall Douglas wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>On 17 Feb 2004 at 17:25, Roman Yakovenko wrote:
>
>  
>
>> 1. To ask David Abrahams how we should export unnamed enums ( defined
>> within class and within some namespace ).
>>    
>>
>
>Believe it or not we have done our best on this - six months ago 
>unnamed enums just didn't work at all. If you search the archives, 
>all is explained there.
>
>Unfortunately pyste starts with a zero based index, so if it is 
>called on two separate occasions it reuses the same index for two 
>quite different enums in separate compilation units. This is a bug 
>but Nicodemus knows about it.
>  
>

Yeah, and I just thought about a fix: the name that GCCXML assigns to 
this enums is in the form $_0, $_1, etc..., so now this number is used 
to generate the UniqueInt. I guess this solves the problem. If that 
doesn't work, I have another idea that might.

Regards,
Nicodemus.





More information about the Cplusplus-sig mailing list