Hi all, What would be an 'elegant' way to handle dynamic casting?
For instance, I have a numpy.recarray.data buffer (char*) that I want to iterate (pointer arithmetic) and manipulate in cython. What would be an elegant way to dynamically cast the char* to the type of the heterogeneous elements? Obvious to say, these are unknown at compile time. Utilizing tokenization in a C macro is all that I've thought up so far, considering I'm a self-taught, still studying student of CS. :) P.S.: Is this one of those cases where preprocessing macros are invaluable in **some** conditions, as I just read being debated in an older thread? Thanks -dieter _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
