POV-Ray : Newsgroups : povray.general : Global variable changed by Macro without parameters? : Re: Global variable changed by Macro without parameters? Server Time
4 Aug 2024 16:15:48 EDT (-0400)
  Re: Global variable changed by Macro without parameters?  
From: ABX
Date: 2 Apr 2003 07:48:30
Message: <brml8vcv0h6ou3klgdtq2p60h1f918peva@4ax.com>
On Wed, 2 Apr 2003 14:33:24 +0200, "Tim Nikias v2.0" <tim### [at] gmxde> wrote:
> #fopen _O "test.tmp" write
>  #write (_O, "#declare ",_Name,"=Var;\n")
> #fclose _O
> #include "test.tmp"

> #fopen _O "test.tmp" write
>  #write (_O, "#declare Var=",_Name,";\n")
> #fclose _O
> #include "test.tmp"

> #fopen _O "test.tmp" write
>  #write (_O, "#declare ",_Name,"=Var;\n")
> #fclose _O
> #include "test.tmp"

Out of curiosity, did you noticed Parse_String macro ?

ABX


Post a reply to this message

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