POV-Ray : Newsgroups : povray.newusers : Any more characters in declared names possible ? : Re: Any more characters in declared names possible ? Server Time
2 Jul 2024 12:10:42 EDT (-0400)
  Re: Any more characters in declared names possible ?  
From: Alain
Date: 16 Apr 2011 15:39:05
Message: <4da9f059@news.povray.org>

> Hi,
> working on the blender exporter, I came across some troubles when using
> characters such as hyphens or dots in declared names. Is this restriction
> usefull or could it be removed in later versions of POV-Ray ?
>
>

The hyphen will be interpreted as a minus sign.
If you have something like:
#declare A-B = 5;
#declare A = 1;
#declare B = 2;

Then you'll have a problem with this:

translate <A, B, A-B> been interpreted as translate<1,2,-1>

You have no way to diferensiate between A-B (the variable) and A-B (A 
minus B)


The same way, you can't use any of those in a name:
|!&*/+-.^=%"'@#\(){}[]<>



Alain


Post a reply to this message

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