POV-Ray : Newsgroups : povray.beta-test : initializing function array - parsing bug Server Time
12 Nov 2024 16:28:31 EST (-0500)
  initializing function array - parsing bug (Message 1 to 2 of 2)  
From: badt
Subject: initializing function array - parsing bug
Date: 27 Sep 2001 06:11:03
Message: <3bb2fb37@news.povray.org>
SCENE begin
********************************************************************

/* only second array declaration really initializes the array, why? */


#declare b = array[1]{
        function{0}
}


#declare a = array[1]{
        function{0}
}


/* only second array declaration really initializes the array, why? */


#declare b = array[1]{
        function{0}
}


#declare a = array[1]{
        function{0}
}


#declare A = a[0](0,0,0);

#declare B = b[0](0,0,0);

SCENE #2 end
****************************************************************************
*********

SCENE #2 error message:

#declare B = b[0] <----ERROR

Parse Error: Attemp to access unitialized array element.


Post a reply to this message

From:
Subject: Re: initializing function array - parsing bug
Date: 27 Sep 2001 06:47:57
Message: <3r06rt4srvn4927heitclvo38ps55e4l1g@4ax.com>
On Thu, 27 Sep 2001 12:09:32 +0200, "badt" <est### [at] isdnnetil> wrote:

> Parse Error: Attemp to access unitialized array element.

hint: for developers - this works fine

#declare a = function{0}
#declare a = array[1]{function{a(x,y,z)}}
#declare b = array[1]{function{0}}
#declare B = b[0](0,0,0);
#declare A = a[0](0,0,0);

ABX


Post a reply to this message

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