POV-Ray : Newsgroups : povray.newusers : Is there a for operator? : Re: Is there a for operator? Server Time
28 Jul 2024 14:21:00 EDT (-0400)
  Re: Is there a for operator?  
From: andrel
Date: 7 Oct 2008 17:07:04
Message: <48EBCFC7.6090009@hotmail.com>
On 07-Oct-08 22:55, Christian Froeschlin wrote:
> 
>> There's no "for" but you can use "while" for the same purpose.  
> 
> Although it would be nice to have a for loop as well. I understand
> the concept of semantic sugar, but there must be a reason why every 
> programming language in popular use has such a construct. 

And preferably with a counter whose scope is limited to the loop.

Would you like to have arbitrary next item functions or just simply 
numeric increment?

> And in
> SDL in particular I think most loops I've ever seen were actually
> counter-based loops (placing objects, subdivide angles, arrays).


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.