On Wed, Aug 25, 2010 at 12:02 AM, Stefan Behnel <[email protected]> wrote: > Robert Bradshaw, 25.08.2010 08:57: >> On Tue, Aug 24, 2010 at 11:54 PM, Dag Sverre Seljebotn wrote: >>> Can't you do it conditional on being in a "cdef cppclass" block? While >>> not perfect, that at least gives us backwards compatability with >>> currently working Cython code. >> >> Not easily, given the structure of the parser. As I mentioned, this is >> the same bug that causes C++ namespaces to get prepended to argument >> names (I think). Essentially, we need to make parsing function >> arguments and parsing variable declarations more distinct. The >> contexts are not granular enough. > > Can't we put that information into the parser "Ctx" context?
Perhaps. > It currently doesn't even hold the information if we are parsing C or C++ ... This doesn't belong in Ctx as it is global to the module. - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
