Hi guys!
Shaun here,
It’s possible you’ve seen my name float around, I’ve done a lot of reading, I’ve done a tiny bit of replying. This is my first post.
Lately I’ve done a lot of reading on things like the Director Class, the OOP template in the code exchange, and just on modules and groups in general. With the documentation in the api on modules being next to nothing I turned to the net at large for some answers.
In my readings I came across this:
http://lua-users.org/wiki/LuaModuleFunctionCritiqued
In the post the author details how modules work typically in lua, and the problems they can cause without even listing an error. Toward the bottom (last example before comments) he offers up an alternative that makes a lot of sense.
I was curious what your takes are, considering I took very little C in college and this is only my second scripting language I’m not as experienced as some in the Ansca community.
With that, have a read and let me know what your impressions are. At the very least I thought the community should know there’s an alternative to using modules. When doing this like the director class, it seems like it could simply things greatly and reduce the lines of code.
Shaun
Zombie Alligator Games [import]uid: 20703 topic_id: 7802 reply_id: 307802[/import]