POV-Ray : Newsgroups : povray.general : #version in colors.inc Server Time
18 Nov 2024 17:19:29 EST (-0500)
  #version in colors.inc (Message 1 to 1 of 1)  
From: Marc-Hendrik Bremer
Subject: #version in colors.inc
Date: 17 Jul 2002 15:47:37
Message: <3d35c9d9@news.povray.org>
Hi!

Due to a question in p.newusers I had a look at the #version-management in
colors.inc. There is something odd:

The set version is saved in the variable Colors_Inc_Temp, but there is no
version set in the include-file until the end of the file, where the version
is set 'back' to Colors_Inc_Temp. That leads to problems, if the new
colors.inc is used while #version is set to something less than 3.1, because
there are some macros defined in colors.inc.

Wouldn't it be good to add a line

#version 3.5; (or 3.1 if that works)

after saving the present version?
I notice that there are no such directives in the other include files, but
why is the present version saved AND restored, if the version is not
switched to something else? (I know it is saved, for the check if the
include-file was already included.) At least some of the standard-include
files won't parse if the #version is set to less than 3.1 or 3.5, as they
contain macros or calls for internal functions (functions.inc).

Marc-Hendrik


Post a reply to this message

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