↧
Answer by furq for How to reference lua table member from table member?
There's no way of doing this inside the constructor itself, but you can do it after creating the table like so:enUS = { LOCALE_STHOUSANDS = ","}enUS.patNumber =...
View ArticleAnswer by Nicol Bolas for How to reference lua table member from table member?
How can i perform self-referencing in an lua table?You don't.Lua is not C. Until the table is constructed, none of the table entries exist. Because the table itself doesn't exist yet. Therefore, you...
View ArticleHow to reference lua table member from table member?
i have a table in lua:enUS = { LOCALE_STHOUSANDS = ",", --Thousands separator e.g. comma patNumber = "%d+["..LOCALE_STHOUSANDS.."%d]*", --regex to find a number ["PreScanPatterns"] = {...
View Article