POV-Ray : Newsgroups : povray.text.scene-files : Eyeball code. : Re: Eyeball code. Server Time
29 Jul 2024 04:26:30 EDT (-0400)
  Re: Eyeball code.  
From: Nieminen Mika
Date: 26 Jun 1999 09:34:03
Message: <3774d6cb@news.povray.org>
Ken <tyl### [at] pacbellnet> wrote:
:   It is very easy to tell when a loop ends. The Pov team implemented a
: very special key word for this called #end. For every #while there must
: be one #end. If you are mathmaticaly inclined enough to count up to
: four #while's you should be able to count up to four #end's indented
: or not. Go figure !

  So instead of just directly seeing the proper #end keyword at the first
sight, you have to be counting the number of #end statements.
  Suppose something like this:

#if(something)
#while(this)
#if(some_else)
#while(that)
#if(foo)
bar
#end
#if(bar)
foo
#end
#end
#if(foo)
bar
#end
#end
#if(bar)
#while(that)
#if(foo)
bar
#end
#end
#end
#end
#end

  Where does the first "#while(that)" end? How about the first #if?
  For example in the case of the first #if statement you could instaneously
say where does it end with a proper indentation. Without indentation you
can't be sure before you count all the blocks.

-- 
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.