POV-Ray : Newsgroups : povray.general : Suggestion: array functions : Re: Suggestion: array functions Server Time
8 Aug 2024 12:24:17 EDT (-0400)
  Re: Suggestion: array functions  
From: Peter Popov
Date: 16 Feb 2001 16:08:18
Message: <rggp8t019366bfd5tqif0rami2l5pk9ihm@4ax.com>
On Thu, 15 Feb 2001 06:31:59 -0500, Chris Huff <chr### [at] maccom>
wrote:

>Another idea: a for_all() function that takes an array and 
>macro as parameters, and performs the macro on each defined item in the 
>array.

Similar to ForEach(x) in Pascal. IIRC (I haven't touched Pascal in
like eight years) it worked like this:

foreach(something) do
begin
  ...
  ...
  ...
end;

I would also like to see an equivalent of the 'with' but that would
imply an OO concept and I don't think it's time for that yet (I hear
booing already)


Peter Popov ICQ : 15002700
Personal e-mail : pet### [at] vipbg
TAG      e-mail : pet### [at] tagpovrayorg


Post a reply to this message

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