Hi,
I've been doing a bit of programming with IUP LUA under windows.

And have discovered this oddness.
===========
require( "iuplua" )
require( "iupluacontrols" )

box = {}
key = "999"

box[key]= iup.matrix {numcol=2, numcol_visible=2,  numlin=0}


local box_key = box[key]    -- This works
function box_key:click_cb(L,C)
end


-- The function def below doesn't like the [key], doesn't compile
function box[key]:click_cb(L,C)
end


========

I'm at a loss to understand why the latter function doesn't compile.

Any advice greatfully received.

--John

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to