POV-Ray : Newsgroups : povray.beta-test : Include file versions : Re: Include file versions Server Time
24 Jun 2024 09:02:44 EDT (-0400)
  Re: Include file versions  
From: clipka
Date: 2 Aug 2011 13:27:52
Message: <4e383398@news.povray.org>
Am 19.07.2011 04:41, schrieb Cousin Ricky:
> Is it advisable to go through my include files and update them to version 3.7?
> Is it a good idea to set the #version to 3.7 even if no changes are required?
>
> I noticed that all the standard include files in the 3.7 release still have
> #version 3.5, so the answer to my questions would *seem* to be "no," but I would
> like to know what people think.

I think the standard include files do it right:

- To prevent overriding the #version requested by the main file, start 
and end the include file with something like

     #local FOO = version;
     #version 3.5;

     // ...
     // file content proper
     // ...

     #version FOO;

- In the #version statement, use the lowest version number that is known 
to work with your include file, in order to provide backward compatibility.


Post a reply to this message

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