lua-users home
lua-l archive

Re: parser hacking: conditional fields

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


So, the parser hacking is to there to accomplish:
table.outer?.inner
such that outer's absence does nto cause an error.
If `inner` is absent, then is the answer "nil"? Is the answer the
value of 'outer'? If `outer` doesn't exist, is the answer `nil`? It
seams like if the answer were `false`, I couldn't possibly know if
`inner` if false or if it wasn't there...
Does any of this change change if instead you had:
table.outer?.inner?
...or is that not being contemplated?
-Andrew

AltStyle によって変換されたページ (->オリジナル) /