[Pyrex] A simple question

Greg Ewing greg.ewing at canterbury.ac.nz
Wed Apr 18 22:18:31 UTC 2007


Robert Bradshaw wrote:
> I believe you could even declare their type, and pyrex will do the  
> right thing:
> 
> cdef extern from "someheader.h":
>      int const1
>      int const2

That would work, but Pyrex would let you try to assign to
them too, which would lead to C compilation errors if you
did that accidentally.

--
Greg



More information about the Pyrex mailing list