lua-users home
lua-l archive

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


On Sun, Jul 5, 2015 at 2:39 PM, Jay Carlson <nop@nop.com> wrote:
> Could I call a function like table.append(c, 4)?

I think the idea of a tuple is that it is a const unmodifiable table.

> I had a more complicated proposal for "static" which might help. "static c = Const{1,2,3}" would do the same thing, even inside a loop.

So it would be a _compile-time_ constant? That makes it cheap to use,
although restricts what values it can be initialized to