In the current CVS head I've changed the way base class functions are called. These are used in the printing example where we have overridden virtual functions. (note that you cannot override any virtual function, only ones that have been coded for.)
Some reasons for changing this are: 1) To make wxLua function calls a little faster, we only check if the first char in the function name is '_' which is nothing compared to doing strncmp("base_", func_name, 5). 2) To avoid any potential function name conflicts since C/C++ cannot have functions start with '_', but since lua can there can never be a problem with a function someone wants to wrap called "base_XXX" which would have always failed. Was: (yes, this example is trivial) printOut.OnBeginDocument = function(self, startPage, endPage) return self:base_OnBeginDocument(startPage, endPage) end Is now: printOut.OnBeginDocument = function(self, startPage, endPage) return self:_OnBeginDocument(startPage, endPage) end Regards, John Labenski ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users