Ok, thank you.
On Mon, Jun 28, 2010 at 1:41 AM, Greg Ewing <[email protected]>wrote: > John Salvatier wrote: > > > *(<double *>op) = (*extra <double(*)(int)> ) ( *(<int*> i1) ) > > You can't use * for dereferencing in Pyrex/Cython. Instead of > > *p > > you need to write > > p[0] > > But I'm having trouble parsing this part myself: > > (*extra <double(*)(int)> ) > > Unless this is some weird Cython construct I'm not aware of, > it looks like nonsense. Are you trying to cast 'extra' to > a function pointer? > > If that's the case, the expression you want is something like > > (<double*>op)[0] = (<double(*)(int)>extra)((<int*>i1)[0]) > > -- > Greg > _______________________________________________ > Cython-dev mailing list > [email protected] > http://codespeak.net/mailman/listinfo/cython-dev >
_______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
