POV 3.5 RC2 icl on WinNT Sp 6 PII 233 with 128 MB
I tried to make shorter version of f_array problem script for Warp but
accidentaly I found another thing:
#declare IC_Arr=array[12]
#declare IC_Arr[0]=function{x}
#declare IC_Arr[1]=IC_Arr[0]
#declare IC_Arr[2]=IC_Arr[1]
returns :
#declare IC_Arr[1]=IC_Arr[0]
#declare IC_Arr[2]=IC_Arr[1] <----ERROR
Parse Error: Attempt to access uninitialized array element.
Any confirmation ?
ABX
Skiba <abx### [at] babilonorg> wrote:
> I tried to make shorter version of f_array problem script for Warp but> accidentaly I found another thing:>> #declare IC_Arr=array[12]> #declare IC_Arr[0]=function{x}> #declare IC_Arr[1]=IC_Arr[0]> #declare IC_Arr[2]=IC_Arr[1]>> returns :>> #declare IC_Arr[1]=IC_Arr[0]> #declare IC_Arr[2]=IC_Arr[1] <----ERROR> Parse Error: Attempt to access uninitialized array element.>> Any confirmation ?
Add semicolons and it works. The semicolons are required but the parser
cannot detect the end of the third declare line:
#declare IC_Arr=array[12]
#declare IC_Arr[0]=function{x}
#declare IC_Arr[1]=IC_Arr[0];
#declare IC_Arr[2]=IC_Arr[1]
Gives the correct error message.
#declare IC_Arr=array[12]
#declare IC_Arr[0]=function{x}
#declare IC_Arr[1]=IC_Arr[0];
#declare IC_Arr[2]=IC_Arr[1];
Gives the correct result.
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde
Visit POV-Ray on the web: http://mac.povray.org
On Tue, 23 Apr 2002 17:19:24 +0200, "Thorsten Froehlich" <tho### [at] trfde>
wrote:
> Add semicolons and it works. The semicolons are required but the parser> cannot detect the end of the third declare line.
Somehow I felt such solution but was too concerned on other things. Anyway I
think something could be mentioned in "6.2.2.1 Declaring identifiers" about
such situation.
ABX