lua-users home
lua-l archive

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



On 17/05/2014 15:31, Roberto Ierusalimschy wrote:
I want something like |local v = t?t1?t2?t3|... (actually I want
|local v = t?.t1?.t2?.t3|...)
Another option:

    local v = (((t or E).t1 or E).t2 or E).t3

(where E={} is defined somewhere in your code...)

-- Roberto

Still not good enough...