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:

> 2010/12/1 Miles Bader <miles@gnu.org>:
>> as that's the
>> only way to make a local variable in 99% of programming languages
>
> many languages (especially beginner-friendly languages) assume local
> by default

I can't think of a single language that automatically declares variables
and assumes local by default.

Hint: C isn't one.  In C, you need to declare every variable explicitly.
A local variable declaration is shorter than a global one, but you can't
omit it.

-- 
David Kastrup