lua-users home
lua-l archive

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


On Wed, Jul 8, 2015 at 11:34 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> Similarly:
>
> a = c
>
> would be generate "attempt to assign a constant object to
> a non-constant name", but
>
> const a = c
>
> would be OK.

So if a function returned a tuple (or any other constant value), you
would also need to declare that the function returned a constant
value, so that the interpreter could know and generate appropriate
compile time errors?

-Parke