Sturla Molden, 07.01.2010 15:45: >> This obscures the intent of the code by abusing a C keyword, just >> borrow the Java keyword that already has the associated semantics: >> >> cdef final small_method(self, x): > > I think a decorator would be better than a keyword: > > @cython.nonvirtual > cdef void small_method(self, x): > pass > > In a perfect world, Cython should just look like a Python library. > > Also I agree that the C/C++ semantics of inline should be kept. Or > preferably, inline should just be a decorator as well. > > @cython.nonvirtual > @cython.inline > cdef void small_method(self, x): > pass
But wouldn't '@cython.inline' still imply '@cython.nonvirtual' here? The question is: what use case is there where you would want one without the other? Stefan _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
