On 10/9/07, Nick Alexander <[EMAIL PROTECTED]> wrote: > > rdef foo(...) > > > > Hey, what's wrong with "rdef"? An rdef'd method is like a cdef'd > > one, but it > > can be redefined in a derived class with a def or cdef method? > > I like dynamic languages that allow me to change everything, so why > not make the default cdef over-loadable and have a "static cdef" that > does the exceptional cases that can't be over-loaded?
That's a reasonable proposal. It was discussed during the Cython talk at SD5: http://video.google.com/videoplay?docid=8155731528590036456&hl=en The drawback is it will immediately make all of our cdef methods potentially slower. It will also make it so in situations when you think you're calling the method via C you're actually calling it via Python, which will be much slower. Basically what you suggest is easier to use, but has some serious performance issues. -- William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---