lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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