[Cython] Robert, please help!
Robert Bradshaw
robertwb at math.washington.edu
Fri Oct 10 00:15:35 CEST 2008
On Oct 3, 2008, at 9:29 PM, Lisandro Dalcin wrote:
> OK, at this link http://publications.gbdirect.co.uk/c_book/chapter8/
> typedef.html
>
> I've found the following example:
>
> /*
> * Using typedef, declare 'func' to have type
> * 'function taking two int arguments, returning int'
> */
> typedef int func(int, int);
> /* ERROR */
> func func_name{ /*....*/ }
> /* Correct. Returns pointer to a type 'func' */
> func *func_name(){ /*....*/ }
> /*
> * Correct if functions could return functions,
> * but C can't.
> */
> func func_name(){ /*....*/ }
>
>
> I'm fine with that. So I´ll try tomorrow if Robert´s modifications can
> handle this form. Thank's for the point, Greg!
>
Lisandro,
What was the final resolution on this?
- Robert
More information about the Cython-dev
mailing list