|
|
>> Well, IMHO the code snippet is valid SDL.
> No, it is not, you cannot return a function that way just like you cannot
> pass a function that way either (well, with restrictions anyway).
While I cannot find such a limitation mentioned in the documentation
(It's mentioned that you cannot pass functions as macro-parameters), I
do understand that this is the case.
My other statement about the proper treatment of syntax errors, however,
is still valid :)
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
|
|