On Fri, Dec 5, 2008 at 8:05 AM, Arthur Reutenauer <[EMAIL PROTECTED]> wrote: >>> but it might make more sense to look into metatables (i assume that you >>> own the programming in lua book which explains that) >> >> I don't have one :(, I'll take a good at it later. > > You really should look into the book, it has a whole chapter about > object-oriented programming in Lua, and explains useful conventions.
Oh it's a long document. I almost took a day to finish it. I've got the main idea now. Thanks. I'm sorry, I got another question now. How to link two variables? Like if I change one, the other would be changed as well. This may be a piece of cake for you and please forgive my laziness. > > Arthur > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ > -- Best Regards Chen ---------------------------------------------------------------- Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ---------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________