POV-Ray : Newsgroups : povray.beta-test : woodmaps.inc error : Re: woodmaps.inc error Server Time
29 Jul 2024 14:25:08 EDT (-0400)
  Re: woodmaps.inc error  
From: Felix Wiemann
Date: 26 Apr 2002 09:55:40
Message: <3cc95c5c@news.povray.org>
Warp wrote:
>   This is one thing I have always disagreed with (and I have to always
> fix this by myself).
>   A library should always be usable just as it is (ie. just by
>   including it
> and period). If the library depends on another library, it should
> include it internally.
>   It's extremely user-unfriendly and illogical that the user must know
>   which
> libraries depend on which other libraries and in which order he should
> include them in order to make them work.

I agree.

>   If you are worried about parsing speed, just enclose the #include
>   statement
> in a proper #ifdef block (the one that is defined inside colors.inc).

That won't work. POV-Ray has to read the whole include file because the 
#endif could be in the include file (it's not like C++).

Btw, could you correct your line length to 72? The quoted text isn't 
very well readable.

-- 
Felix Wiemann


Post a reply to this message

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