   Making LUA more OO-like
  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...   [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." 
A good start pointbtw: 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]