On May 13, 2008, at 9:28 AM, Anatoly A. Kazantsev wrote:
On Tue, 13 May 2008 14:49:11 +0700 "Anatoly A. Kazantsev" <[EMAIL PROTECTED]> wrote: I have next code and it's not working properly. In foo.h somebody wrote: #define BAR 1 than I want to define module constant with same name and value: cdef export from "foo.h": сtypedef enum: _BAR "BAR" cdef public enum: BAR = _BARIn python BAR will have 0 not 1. And actually 0 is index number of BAR in the enum.Looks like value of _BAR is not applyed to BAR in the enum. Maybe I do something wrong.
Hmm... I am unable to reproduce this--it works for me. Anyone else? - Robert
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
