Robert Bradshaw wrote: > On Thu, 27 Aug 2009, Ian Langmore wrote: > >>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)) > > When you do that inside of a function (inside your main() here) you're > declaring a new local variable.
Don't know about Cython, but in Pyrex this is an error -- it thinks you've forward-declared a function without defining it. > In terms of top-level declarations, you should never need prototypes in > Cython. You may sometimes need forward declarations, but you don't ever need to put them inside functions in either Pyrex or Cython. -- Greg _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
