POV-Ray : Newsgroups : povray.beta-test : [scenes] woodmaps.inc : Re: [scenes] woodmaps.inc Server Time
30 Jul 2024 06:28:21 EDT (-0400)
  Re: [scenes] woodmaps.inc  
From: Christopher James Huff
Date: 28 Jan 2002 21:11:24
Message: <chrishuff-F48FCD.21133128012002@netplex.aussie.org>
In article <3c55d9f1@news.povray.org>, Warp <war### [at] tagpovrayorg> 
wrote:

> Thorsten Froehlich <tho### [at] trfde> wrote:
> : How could it know that the #if block ends at the end of the file without
> : looking through the whole file?
> 
>   I think that it would be fair to _assume_ that block starts and ends are
> always located in the same file. This probably will not break any logical
> SDL script and is a very rational standard limitation to make.

As far as I know, the POV SDL *does* make this assumption. You missed 
his point...there is no way of knowing the end of the block is at the 
end of the file. It has to search to find the matching #end, and it has 
to do this starting forward from the #if statement. You can't even 
search backwards from the end of the file, you will mess up if you have 
multiple #if statements in series, and you can't just stop at the first 
#end, or you mess up nested statements.

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

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