Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Prozak

Making LUA more OO-like

This topic is 5424 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all, can i make lua code more OO-like, so that: kitchen_fork(USE_ON_FOOD); ...i can do: kitche.fork(USE_ON_FOOD); ? I''m using LUA 5.0 under VS C++ .Net... Thanks for any tips on this... Jester Says: Visit Positronic Dreams!
[Hugo Ferreira][Positronic Dreams][Colibri 3D Engine][Entropy HL2 MOD]
[Yann L.][Enginuity] [Penny Arcade] [MSDN][VS RoadMap][Humus][BSPs][UGP][NeHe]
"I say we take off and nuke the entire site from orbit. It''s the only way to be sure."

Share this post


Link to post
Share on other sites
Advertisement
A good start point

btw: LUA tables can be referenced by name, creating psuedo-classes. eg: kitchen["fork"] is accessible via kitchen.fork (the latter is syntaxical sugar)

[edited by - downgraded on February 5, 2004 11:37:54 PM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!