[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Why does numeric for loop not accept an explist?
- From: Doug Rogers <rogers@...>
- Date: Mon, 31 Dec 2007 12:19:22 -0500
Doug Rogers wrote:
> Perhaps the syntax could be:
> for Name `=´ explist do block end
> '(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.
Innovative Concepts, Inc. www.innocon.com 703-893-2007 x220