lua-users home
lua-l archive

Re: tested index patch (was: Undefined variables returning nil)

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


> Maybe there's an interesting little parser patch here. Say a piece of sugar that converts
> object!.name
> to
> (object.name or error("'object' lacks required field 'name'"))
“or” isn’t quite what is wanted here, is it? it would (undesirably) catch object.name == false (as opposed to just nil).
- Peter

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