lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



On 17/05/2014 14:34, Petite Abeille wrote:
On May 17, 2014, at 7:07 PM, Thiago L. <fakedme@gmail.com> wrote:

I want something like |local v = t?t1?t2?t3|... (actually I want |local v = t?.t1?.t2?.t3|…)
Why don’t you simply write a little function that does exactly that then?

v = get( t, ‘1.2.3.4.5.6.7.8.9’ )



And what if I want to do something like table?something[someVariable]?somethingElse