On Sat, Oct 25, 2008 at 1:05 PM, klaas.holwerda <[EMAIL PROTECTED]> wrote: > Hi John, > > %operator a2dCanvasObjectListIter& operator--(int) > > If you change it to generate this, down here, it will work: > > *returns = ((*self).operator++(arg1));
I don't think that post-incrementing makes much sense for Lua. I see that you can overload it to mean something different than pre-incrementing, but since it will have to be converted to a function it can never be make to actually increment after the expression is evaluated without resorting to using a debug hook to check to see if we're on the next line. This would lead to an unacceptable performance penalty for such a small thing. By the way, have you found a link that exhaustively goes through the C++ code for each operator? I can only find lists of the operators or discussions about particular cases, but there's always some nuances that aren't discussed. -John ps. I've updated Lua to 5.1.4, but the changes are very small. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ wxlua-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wxlua-users
