For the reverse, how can I add a attribute (say the call back pointer or
another pointer i.e. a light userdata) in that lua table so I can retrieve
later so that it also gets garbage collected when the Lua table is
collected?
Thanks,
Milind
On Sat, Jul 11, 2015 at 7:47 AM, Milind Gupta <milind.gu...@gmail.com>
wrote:
> Hi,
> If I add an attribute in Lua to any iup object example the
> matrix. How can I read it in C?
>
> Lets say
>
> m = iup.matrix{}
> m.myAttr = {1,2,3}
> m.myAttr1 = "Hello"
>
>
> Now once I get the Ihandle for m in C how do I get myAttr and myAttr1?
>
> Thanks,
> Milind
>
>
>
------------------------------------------------------------------------------
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