POV-Ray : Newsgroups : povray.beta-test : Problems with functions in beta 16 : Re: Problems with functions in beta 16 Server Time
29 Jul 2024 16:23:36 EDT (-0400)
  Re: Problems with functions in beta 16  
From: Christoph Hormann
Date: 10 Apr 2002 06:13:56
Message: <3CB4105D.D03EA180@gmx.de>
Christoph Hormann wrote:
> 
> [...]
> #macro IC_Merge4(fn_A, fn_B, fn_C, fn_D)
>   function {
>     min(fn_A(x, y, z),
>         fn_B(x, y, z),
>         fn_C(x, y, z),
>         fn_D(x, y, z))
>   }
> #end
> 
> [...]
> #declare fn_A= IC_Merge4(IC_Arr[0], IC_Arr[1], IC_Arr[2], IC_Arr[3])
> 

This seems to be a problem related to the duplicated name 'fn_A', when
using different identifiers inside and outside the macro it works.

I have no idea about the reason for the other problem, but it could be
some function size limit, the resulting function is fairly long and the
crash does not occur when only merging 8 functions.

Both problems already occur in beta 15 BTW.

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 18 Mar. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

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