| View previous topic :: View next topic |
| Author |
Message |
Magriep
Joined: 28 Aug 2005 Posts: 8
|
Posted: Wed Mar 01, 2006 1:43 pm Post subject: Loading a library |
|
|
Hi,
I would like to use the struct library (http://www.inf.puc-rio.br/~roberto/struct/) for lua, but I'm not quite sure how to go about implementing this. From a brief search of the lua forum, it seems like there isn't really a way to do something like this, so would I need to build it into lua itself (last resort)? Or is there some other way I can get the same functions. Any help would be greatly appreciated. |
|
| Back to top |
|
 |
Oobles Site Admin
Joined: 17 Jan 2004 Posts: 362 Location: Melbourne, Australia
|
Posted: Wed Mar 01, 2006 2:12 pm Post subject: |
|
|
The loadlib function is not currently available for LUA. The only way you could support your library would be to build it directly into LUA. The other option is to setup LUA to allow loading modules and compile it as a module.
There is now enough information on creating and loading PRX files that adding loadable modules into LUA should not be too difficult. It just seems no-one has had the time to do it. It is still on my to do list, however, I don't know when I'll get to it.
David. aka Oobles.
www.livemedia.com.au/Blog |
|
| Back to top |
|
 |
Magriep
Joined: 28 Aug 2005 Posts: 8
|
Posted: Mon Mar 06, 2006 4:50 am Post subject: |
|
|
| Ok, I am going to try and build it in LUA. I'm not sure exactly where it should be added (not familiar with the structure), so any help that would point me in the right direction would be greatly appreciated. |
|
| Back to top |
|
 |
|