[C++-sig] Re: Re: enum_ exporting implemented

David Abrahams dave at boost-consulting.com
Sat Dec 14 01:19:18 CET 2002


"Mike Rovner" <mike at bindkey.com> writes:

>> >>>> identity(color(3))
>> > enums.color(3)
>> >
>> > a mistake? There is no 3 in example enum.
>>
>> Try the tests yourself:
>>
>>   libs/python/test/enum.[py/cpp]
>
> I mean not how it is working, but how it shall work.
> If it's a legitimate behavior, please, explain why.

It mirrors the behavior of C++ enums.

Why do you think it's illegitimate?
What do you think enums.color.red + enums.color.green should do?


-- 
                       David Abrahams
   dave at boost-consulting.com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution





More information about the Cplusplus-sig mailing list