Dag Sverre Seljebotn wrote: > A directive to warn/give error on any undeclared variables? I.e.: > > @cython.warning_undeclared(True) > def foo(): > cdef object a > cdef int b > a = b = c = 3 # warns that "c" is not declared and auto-typed to object
Fine with me. There are really cases where you want a function to be "all C", and you want to be sure it stays that way. Regarding the infrastructure, what about an abstract transform hat intercepts on specific Cython compiler directives. The reason is that I think we'll need this more often, e.g. for a test directive that asserts certain features of the parsed/transformed/optimised source tree. It should just delegate the respective subtree to another transform (or even tree visitor) and let that do the rest. Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
