POV-Ray : Newsgroups : povray.beta-test : identifier of function : identifier of function Server Time
31 Jul 2024 00:29:17 EDT (-0400)
  identifier of function  
From:
Date: 19 Sep 2001 08:20:34
Message: <s83hqt01d1q4r9u4b7tr8e3cg0nfoo25fe@4ax.com>
platform info: WinNT4, PII 233, 128MB, POV3.5b2

Is name of function treated as identifier like for objects, pigments
and others ?

I'm trying to create such thing:

  #declare func=function(x,y,z){x+y+z}
  #macro Test(Func)
    #local New=function{Func}
  #end
  Test(func(1,2,3)) // call with parameter as float - works
  Test(func) // call with parameter as function - wrong syntax

Second call is wrong but I hav not found notation about it within
documentation. There is note "PARAM_IDENTs are a list of zero or more
formal parameter". Is identifier of function formal parameter ?

more about functions in another post

ABX


Post a reply to this message

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