lua-users home
lua-l archive

Re: explicit mode

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


> local function bar(x)@(_ENV,bar)
> return snafu(x * foo(3,2)
> end
> 
> and you get an error because snafu is not declared for bar(), and you are
> now pointlessly including a local no longer needed.
There should never be a reason to require using any new syntax. In the absence of markup the behaviour should be as existing (so `bar(x)` without annotation would work just fine). If you wanted the restrictions then you would want the error that `snafu` was not declared.
Regards,
Duane.

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