On Thu, 27 Aug 2009, Ian Langmore wrote: > Thanks Robert, I hope colloquium tea at UW still brings good food.
Most of the time :) > When you say I was "declaring a new variable", I think you're referring to > > cdef float use_fun_ptr(float, float, float (float, float)) > > Right? I was declaring function in the same way that variables are declared > at the top of c-code. This "function prototype" isn't necessary always, but > it doesn't hurt, does it? (I'm a novice) When you do that inside of a function (inside your main() here) you're declaring a new local variable. In terms of top-level declarations, you should never need prototypes in Cython. > As for the compile error, I have python 2.5 and cython 0.9.6.14-1 on my > Ubuntu Intrepid machine. Probably a bug in an old version of Cython that has since been fixed, I recommend upgrading. - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
