|
![](/i/fill.gif) |
Ken <tyl### [at] pacbell net> 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
|
![](/i/fill.gif) |