On 6/15/07, Andre <[EMAIL PROTECTED]> wrote:
> > Try out the program samples/bindings.wx.lua! You can browse though all
> > of the bindings.
>
> Most impressive and extremely useful.
There's a few bugs in the version you're using, I've fixed them already.
> I look at it for a very short time will come back for sure.
>
> Why do wxColour:wxColour 4 has a maxargs of 4.
Humm, that is ok I think. The 4th one is the one with alpha.
!%wxchkver_2_8 wxColour(red, green, blue)
%wxchkver_2_8 wxColour(red, green, blue, alpha = wxALPHA_OPAQUE)
wxColour(const wxString& colourName)
wxColour(const wxColour& colour)
You bring up a good point though, currently the overload function is
created with min/maxargs set to min/max of all of the functions it
overloads and this is done by genwxbind.lua which doeesn't take into
account the wxchkver_2_8 above. Therefore, if you compiled in 2.6
(maybe that's what you're doing?) genwxbind.lua would still put a 4 as
the maxargs.
Ehhh... this is unfortunate, but not serious at since we don't use the
min/maxargs from the overload function. I just put them to the overall
min/max because maybe someday they might be used. The logic to add
them up correctly would create some ugly #ifdefs in the bindings and I
think that setting them at runtime would be overkill.
Do you mind if we just sweep this under the rug for now... they can
only have a smaller min and greater max than what really exists after
taking the #ifdefs into account. :)
Regards,
John Labenski
ps. Thanks for the wxlua.CompileLuaScript() fix.
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users