[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Static variables
- From: Phil Bewig <pbewig@...>
- Date: Thu, 18 Mar 2004 22:04:15 +0000 (UTC)
Phil Bewig <pbewig <at> swbell.net> writes:
>
> I'm considering lua for a specific project. One of my needs is for static
> variables that retain their value from one invocation of a function to the
> next. In a quick reading of the manual section on variable scoping, I saw
> no mention of static variables. Does lua provide static variables? Did I
> miss something while reading the manual?
>
> Many thanks,
>
> Phil
>
>
>
Thanks for the replies. So many, and so quickly!
I should have figured this out myself, as Scheme and ML both arrange things
the same way; I didn't immediately understand the nature of blocks during my
quick scan of the manual. As a proponent of functional programming, one of
the features that makes me consider lua is first-class functions, though I
might miss built-in lists (yes, I know I can simulate them with hash tables).
What else will likely be familiar to me?
Phil