POV-Ray : Newsgroups : povray.general : Scope of identifiers in nested Macros : Re: Scope of identifiers in nested Macros Server Time
3 Aug 2024 16:24:57 EDT (-0400)
  Re: Scope of identifiers in nested Macros  
From: ingo
Date: 3 Jan 2004 07:20:13
Message: <Xns946587AD2C2EEseed7@netplex.aussie.org>
in news:3ff6ac42$1@news.povray.org Thorsten Froehlich wrote:

>>     #J = J + 1;
> 
> I like this syntax for manipulating already declared variables.

Why not throw the # away completely?

J = 0;
J = J + 1;

Everything is local, unless it is declared global,

#global J = "global"


Ingo


Post a reply to this message

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