|
![](/i/fill.gif) |
In article <38CAF26F.AF099263@hotmail.com>, Tor Olav Kristensen
<tor### [at] online no> wrote:
> Hmmm...Your for loops looks like c-syntax to me.
Yes.
> Would you suggest that one allowed similar things
> to be allowed in a for-loop declaration in the
> POV-language that one allows in C?
>
> E.g. initialize several variables, call other
> functions/macros within the declaration itself etc. ?
>
> If not, then I my opinion is that one should
> choose another syntax for the for-loop that doesn't
> make the users believe that the same rules applies
> as in C.
I don't see any reason not to support the full C syntax(other than
possible difficulty in supporting some things). The only differences
would be the # in front of the keyword and a #end instead of a {} block.
> And: Wouldn't it be better that the control
> variable(s) in a for-loop is local to the for-loop?
Hmm, I'm not sure here...I think it would be a good idea when considered
alone, but no other variables are local to a loop or conditional. As far
as I know, #local only affects include files and macros. Having a single
exception made for the #for(;;) loop might not be a good idea.
--
Chris Huff
e-mail: chr### [at] yahoo com
Web page: http://chrishuff.dhs.org/
Post a reply to this message
|
![](/i/fill.gif) |