lua-users home
lua-l archive

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


Doug Rogers wrote:

> Perhaps the syntax could be:
>   for Name `=´ explist do block end
> Where:
>   '(for start)' = first value of explist
>   '(for limit)' = second value of explist, or '(for start)'
>   '(for step)'  = third value of explist, or 1

Ah, this doesn't give you what you want anyway. You will need a more
complex statement of the semantics whereby if explist has only one
expression then that expression may return multiple values to specify
the start, limit, and perhaps even the step.

It's still doable, just a bit messier.

Doug

-- 
Innovative Concepts, Inc. www.innocon.com 703-893-2007 x220