Quantcast
Browsing latest articles
Browse All 3 View Live

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 Article


Answer 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 Article


How 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
Browsing latest articles
Browse All 3 View Live