|  |  | In article <3c55d9f1@news.povray.org>, Warp <war### [at] tag povray  org> 
wrote:
> Thorsten Froehlich <tho### [at] trf  de> 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] mac  com>
POV-Ray TAG e-mail: chr### [at] tag  povray  org
TAG web site: http://tag.povray.org/ Post a reply to this message
 |  |