POV-Ray : Newsgroups : povray.general : cannot recognize defined object / help, please : Re: cannot recognize defined object / help, please Server Time
29 Jul 2024 16:31:55 EDT (-0400)
  Re: cannot recognize defined object / help, please  
From: clipka
Date: 7 Jan 2011 10:14:01
Message: <4d272db9@news.povray.org>
Am 07.01.2011 11:52, schrieb Jim Holsenback:
> On 01/07/2011 03:14 AM, Robert Baer wrote:
>>    Now i have an #if..#end problem that is bugging me:
>
>>                      // MATCHED #if..#end recognized to here..
>
> yep ... looked ok to me too (hard to tell messy sytle)
>
>>                      // but not to here..
>> // get "Parse Error: End of file reached but #end expected."
>> sky_sphere {pigment {rgb<0.859,0.910,0.831>}}
>> *** END FILE ***
>
> maybe some thing in the include file is miss-matched ... dunno if the
> parser looks at the include as a seperate entity or considers it as part
> of the entire scene file when resolving conditional blocks ... /think/
> it's the former

No, the parser doesn't systematically check whether the #if and other 
blocks of an #include file are fully matched.

An exception is when the parser encounters an #end for a loop it is 
currently processing; in that case the #while or #for must reside in the 
same file as the terminating #end.


Post a reply to this message

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