POV-Ray : Newsgroups : povray.beta-test : identifier of function : Re: identifier of function Server Time
4 Nov 2024 23:19:11 EST (-0500)
  Re: identifier of function  
From: Ron Parker
Date: 19 Sep 2001 19:10:25
Message: <slrn9qi9f4.93p.ron.parker@fwi.com>
On 19 Sep 2001 18:47:51 -0400, Warp wrote:
>  IIRC there's some kind of problem in passing function names as macro
>paramters. AFAIK currently it's not possible.

It may not become possible any time soon, either.  The problem is that it 
requires more than a single token of lookahead to disambiguate between these 
two macro calls:

#macro Foo(G)
  G
#end

#declare F=function(x,y,z){x,y,z}

#declare H = Foo(F)
#declare I = Foo(F(1,2,3))

-- 
#local R=rgb 99;#local P=R-R;#local F=pigment{gradient x}box{0,1pigment{gradient
y pigment_map{[.5F pigment_map{[.3R][.3F color_map{[.15red 99][.15P]}rotate z*45
translate x]}]#local H=pigment{gradient y color_map{[.5P][.5R]}scale 1/3}[.5F
pigment_map{[.3R][.3H][.7H][.7R]}]}}}camera{location.5-3*z}//only my opinions


Post a reply to this message

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