POV-Ray : Newsgroups : povray.general : POV crash with functions : Re: POV crash with functions Server Time
3 Aug 2024 20:14:14 EDT (-0400)
  Re: POV crash with functions  
From: Warp
Date: 10 Nov 2003 17:00:00
Message: <3fb00a5f@news.povray.org>
Christoph Hormann <chr### [at] gmxde> wrote:
> >   I have to admit that I'm not sure why it's not valid syntax... (Perhaps
> > you should have specified why? :) )

> Are you serious?

> #local fn_p=function (x,y,z) { y };

> #local F1= fn_p;

> #declare fn_crash = function(x,y,z) { F1(x,y,z) }

  Sorry, but I still don't see it. Perhaps I'm unusually dumb today.

  The only thing which I can think of is that you can't create an
identifier and directly assign a function to it (ie. #local F1 = fn_p;),
but if that's so, it's illogical and works differently from any other
identifier type.

  (Compare it to this: You have a #local A = sphere { 0,1 }; and
then you can do #local B = A; and you don't have to do it like
#local B = object { A };)

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

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