From: John L. <jla...@gm...> - 2008-10-30 04:17:44
|
On Wed, Oct 29, 2008 at 5:49 PM, klaas.holwerda <ng...@kl...> wrote: > John Labenski wrote: >> I will look into the adding both pre and post increment/decrement >> operators however. >> > All the better. Should work now. op_inc/dec are for post inc/decrementing and op_preinc/dec are for preinc/decrementing. > And if its not asking to much, i would be great if you could distinguish > between *() and *( arg). > As i said, to dereference, i now need to use op_mul, which looks a bit > weird. > > obj = iter3:op_mul() This should error out since op_mul() expects an argument. > If possible adding an extra op_deref or something like that would be nice. Can you explain why you need to dereference an object pushed into Lua? wxLua uses pointers to all class objects, gets them as pointers in the bindings and simply puts a * in front if necessary. Unless I'm misunderstanding, the operator will convert the pointer to the object, but then immediately convert it back to a pointer to push it into Lua. > For the rest i think wxLua is just great. I wrapped most parts of > wxArt2D in a week are so. > Still lost of things to do, but what is already possible from the wxLua > scripts is cool! > When all is in place, i write a topic or two, to show what it is. Great. Regards, John |