POV-Ray : Newsgroups : povray.windows : Matching braces, brackets and parentheses : Re: Matching braces, brackets and parentheses Server Time
18 Jul 2024 17:33:30 EDT (-0400)
  Re: Matching braces, brackets and parentheses  
From: Warp
Date: 11 Aug 2000 06:31:38
Message: <3993d60a@news.povray.org>
Bob Hughes <per### [at] aolcom?subject=pov-news:> wrote:
: Well throw in a few directives like #if #switch #while and the rest, along
: with more of the possible keywords, and you might start losing sight of
: those neatly ordered braces  :-)

  Those can be indented as well.
  Right, there are no braces with #-commands, but still I haven't had any
problem with them

union
{
    #declare IndX = 0;
    #while(IndX < 100)
        #declare IndY = 0;
        #while(IndY < 100)

            sphere { <IndX, IndY, 0>, .1 }

            #declare IndY = IndY+.1;
        #end
        #declare IndX = IndX+.1;
    #end

    pigment { rgb x }
}

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;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.