POV-Ray : Newsgroups : povray.newusers : loop in function : Re: loop in function Server Time
4 Sep 2024 20:18:27 EDT (-0400)
  Re: loop in function  
From: Warp
Date: 25 Aug 2002 19:07:07
Message: <3d69631b@news.povray.org>
Adrien Rebollo <adr### [at] gmxfr> wrote:
> Then why does this work ?
> #declare my_function = function {
>         sum (I, 0, Imax, 2*I)
> }

  I get this:

File: ...  Line: 3
        sum (I, 0, Imax, 2*I)

} <----ERROR

Parse Error: Expected 'parameter identifier or floating-point constant identifier', }
found instead

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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