[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Tuples and other constant values
- From: steve donovan <steve.j.donovan@...>
- Date: Sun, 5 Jul 2015 17:59:31 +0200
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