POV-Ray : Newsgroups : povray.general : Did you know? : Re: Did you know? Server Time
2 Oct 2025 20:31:50 EDT (-0400)
  Re: Did you know?  
From: Alain Martel
Date: 26 Sep 2025 10:19:00
Message: <68d6a0d4$1@news.povray.org>
Le 2025-09-25 à 18:45, Leroy a écrit :
> Variables can act as any type. Like this
> 
> #declare A="35542";
> #declare B="35542";   #debug concat("A,B",A,B"\n")
> #declare A=45;        #debug concat("A =",str(A,0,0),"\n")
> #declare B=-45;       #debug concat("B =",str(B,0,0),"\n")
> #declare A=<4,5,6>;   #debug concat("A= <",vstr(3,A,",",3,3),">\n")
> #declare B=B+<6,5,4>; #debug concat("B= <",vstr(3,B,",",3,3),">\n")
> #declare A=box{-1,1}
> #declare B=pigment{Red}
> object{A pigment{B}}
> 
> This works on 3.7 & 3.8 win versions.
> 
> Have Fun!
> 

I think that already worked like that with version 3.5...


Post a reply to this message

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