[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Static variables
- From: "D Burgess" <db@...>
- Date: Fri, 19 Mar 2004 9:13:37 +1000
>As a proponent of functional programming
Buy the book
Worthwile from a programming perspective, even if you
dont use Lua.
Phil Bewig <email@example.com> wrote:
>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,
>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?