POV-Ray : Newsgroups : povray.general : The Language of POV-Ray : Re: The Language of POV-Ray Server Time
10 Aug 2024 17:30:14 EDT (-0400)
  Re: The Language of POV-Ray  
From: Nieminen Juha
Date: 21 Mar 2000 09:26:56
Message: <38d786b0@news.povray.org>
Axel Baune <aba### [at] neuroinformatikuni-ulmde> wrote:
: I think if you want it like C then the syntax is:

: #for (whatever you want;
:       whatever you want;
:       whatever you want)

: as for in C and C++ you can do _anything_ in for-specification block,
: even everything else than initialisation, break condition and update
: code. You could even leave everything of the initialisation, break
: condition and update code and do anything else.

  Nope. You can't do anything there. For example you can't put other loops
in there or if-statements, etc.
  Also the second parameter has to have a value. For example calling a
function returning void is no good. The value is used to evaluate the
condition.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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