On Jan 29, 2010, at 2:44 AM, Stefan Behnel wrote: > > Danilo Freitas, 29.01.2010 04:34: >> I wrote a very simple tutorial on wiki [0], with some examples. I >> think it's easy to learn (and use) it. >> >> So, if you have any questions about it, just ask here. >> >> [0] http://wiki.cython.org/gsoc09/daniloaf/progress > > Regarding the comment about function overloading: > > """ > Note that the exact function resolution depends on the notion of > conversion > and promotion, which for integral types may not be known until C > compile > time. This is ongoing work, a ticket about this will be created soon. > """ > > I don't think it's worth investing too much time here. There is > certainly a > "good-enough" level somewhere, and everything else can be clarified > by the > users with explicit casts. I wouldn't expect 'tight' function > overloading > (e.g. for different int types) such a common phenomenon that Cython > should > go into great length to make this overly easy.
Of course the goal is to not produce non-compiling output. The caveat is just there because (1) it's undecidable in general whether something is ambiguous at Cython compile time and (2) finding what is "good enough" is probably a matter of people actually trying to use it, so we're allowing that the behavior may change in the future. - Robert _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
