[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Documenting Lua gotchas for newbies.
- From: David Kastrup <dak@...>
- Date: Thu, 02 Dec 2010 11:24:56 +0100
Javier Guerra Giraldez <javier@guerrag.com> writes:
> On Thu, Dec 2, 2010 at 4:48 AM, Michal Kottman <k0mpjut0r@gmail.com> wrote:
>>> I can't think of a single language that automatically declares variables
>>> and assumes local by default.
>>
>> Python and Ruby
>
> and several Basics, and AppleScript, and Bash, and PHP...
Bash? Since when?
zap()
{
i=$[i+1]
echo $i
}
zap;zap;zap;echo $i
1
2
3
3
--
David Kastrup