[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Global by default
- From: Steve Litt <slitt@...>
- Date: Wed, 13 Feb 2013 04:39:21 -0500
On Wed, 13 Feb 2013 09:54:32 +0100
Alex Queiroz <email@example.com> wrote:
> On Wed, Feb 13, 2013 at 9:51 AM, Steve Litt
> <firstname.lastname@example.org> wrote:
> > Next question: Is it per function, or per function invocation. In
> > other words, if I recursively called a function with 10 local
> > variables, would it break when I went 26 recursions deep?
> It's per function invocation.
Well cool! Long before 256 locals per invocation would break the code,
30 locals per invocation would break my mind. I'd use a table (or table
of tables or whatever) for everything except those things that needed
to keep their local values.