POV-Ray : Newsgroups : povray.general : Scope of identifiers in nested Macros : Re: Scope of identifiers in nested Macros Server Time
3 Aug 2024 22:13:12 EDT (-0400)
  Re: Scope of identifiers in nested Macros  
From: Christoph Hormann
Date: 3 Jan 2004 10:02:05
Message: <cq1jc1-e5f.ln1@triton.imagico.de>
Thorsten Froehlich wrote:
> 
>>Why not throw the # away completely?
> 
> Because then you could no longer distinguish parse-time processing from
> render-time processing, which would close the door for many possible future
> features.  And it would make parsing infinitly more complex (from a runtime
> complexity perspective).

Not to mention the extreme obfuscation possible:

sphere {
   J J = J + K = 1 - J; 1; K
}

The version you suggested is only slightly better:

sphere {
   J #J = J + #K = 1 - J; 1; K
}

I'd really suggest to have a keyword (like #set) for this purpose.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 25 Oct. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

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