Re: [ANN] Lua 5.4.0 (work1) now available
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: [ANN] Lua 5.4.0 (work1) now available
- From: Dirk Laurie <dirk.laurie@...>
- Date: 2018年3月13日 22:50:11 +0200
2018年03月13日 22:38 GMT+02:00 Rodrigo Azevedo <rodrigoams@gmail.com>:
> the (new) syntax could be extended to
> non-tables
>
> a = function(x) return x end
> a = undef
This is perfectly legal if a is global, since a=undef is equivalent to
_ENV.a = undef
It is an error if a is local, or if a does not in fact currently have a value.