Lisandro Dalcin wrote: > On Tue, Nov 18, 2008 at 10:39 AM, Dag Sverre Seljebotn > <[EMAIL PROTECTED]> wrote: >> Idea: I was thinking of perhaps a transform that ran through the tree >> and replaced anything that is a compile-time expression with its literal >> result, i.e. > > But this will not work with external definitions. For example, in MPI > I have to deal with C constants like MPI_MAX_OBJECT_NAME. I declare > all them as external enumerations, and there is no way to tell Cython > de actual value (as it depend on the mpi.h header, and expected to be > different for each MPI implementation).
We were only talking about subtrees that can be evaluated at translation time. C compile-time values are not affected by this transform. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
