POV-Ray : Newsgroups : povray.general : Segmentation fault : Re: Segmentation fault Server Time
2 Aug 2024 18:10:05 EDT (-0400)
  Re: Segmentation fault  
From: Florian Brucker
Date: 23 Oct 2004 03:54:31
Message: <417a0e37$1@news.povray.org>
>> (It's mentioned that you cannot pass functions as macro-parameters)

> Can you please tell me where this is mentioned ?
> (I am curious because I do this all the time.)

Reread the specific section again, and it seems I misunderstood it 
(2.2.1.6.2 Functions and Macros). IMHO it means you're not allowed to 
pass a function's parameters to a macro like

function (a,b) {
	MyMacro(a) + MyMacro(b)
}


Sorry for the confusion,
Florian
-- 
camera{look_at-y*10location<8,-3,-8>*10}#local a=0;#while(a<999)sphere{
#local _=.01*a-4.99;#local p=a*.01-5;#local c=.01*a-4.995;<sin(p*pi)*5p
*10pow(p,5)*.01>sin(c*c*c*.1)+1pigment{rgb 3}}#local a=a+1;#end
/******** http://www.torfbold.com ******** http://www.imp.org ********/


Post a reply to this message

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