Re: Irv's GTK Stuff
- Posted by David Cuny <dcuny at lanset.com> Nov 06, 2003
- 577 views
Irv wrote: > It would be a lot easier to learn Python. Well, there's wxLua, wxPerl, wxBasic... even wxEuphoria. It would be a lot easier to write wxEuphoria by adding it into the Euphoria source than to write a DLL to link to. For example, you'd probably want Euphoria to keep track of objects and manage their lifetime. If I were to do it, I'd probably wrap wxWindows objects in a sequence containing something like: { MagicNumber1, MagicNumber2, pointer, class, temp flag } and then hack Euphoria's sequence destructor so that it would check to see if the sequence was in that form, and if so, call the pointer's destructor if the temp flag was set to true. That way, you would get reference counting on the pointers for free. The wrappers might looks something like this: wxCall( wrapped pointer, function name, { args } ) If anyone is interested in this, I've got from my own projects that could be used for this. -- David Cuny