Help: returning BMax Objects to Lua

BlitzMax Forums/BlitzMax Programming/Help: returning BMax Objects to Lua

How can I return TImage objects and user defined types to lua?

Thanks in advance.

By sending Byte Ptr over there or send handle of it over (by ObjecToHandle function and objectfromhandle, when I remember their names correctly)

Thanks for responding. Do you have an example?