POV-Ray : Newsgroups : povray.binaries.images : Strange error Server Time
28 Mar 2024 08:54:54 EDT (-0400)
  Strange error (Message 1 to 3 of 3)  
From: Jörg "Yadgar" Bleimann
Subject: Strange error
Date: 6 Mar 2020 19:27:24
Message: <5e62ea6c$1@news.povray.org>
Hi(gh)!

While re-coding Melody's smooth mesh2 routine and running a test, I 
encountered a strange error message:

File 'mesh2writer.pov' line 151: Parse Error: Expected 'undeclared 
identifier',
  float function 'no' found instead

This is the mentioned line:

#declare no = vcross(V_vec_Arr[3601]-V_vec_Arr[1], 
V_vec_Arr[0]-V_vec_Arr[1]);

I can't see anything wrong with it... "no" is a vector (returned by 
vcross), not a function!

What is this about?

See you in Khyberspace!

Yadgar


Post a reply to this message

From: Cousin Ricky
Subject: Re: Strange error
Date: 6 Mar 2020 20:39:19
Message: <5e62fb47$1@news.povray.org>
On 2020-03-06 8:27 PM (-4), Jörg "Yadgar" Bleimann wrote:
> While re-coding Melody's smooth mesh2 routine and running a test, I 
> encountered a strange error message:
> 
> File 'mesh2writer.pov' line 151: Parse Error: Expected 'undeclared 
> identifier',
>   float function 'no' found instead
> 
> This is the mentioned line:
> 
> #declare no = vcross(V_vec_Arr[3601]-V_vec_Arr[1], 
> V_vec_Arr[0]-V_vec_Arr[1]);
> 
> I can't see anything wrong with it... "no" is a vector (returned by 
> vcross), not a function!
> 
> What is this about?

'no' is a reserved keyword.  You can avoid this type of name collision 
by making sure all of your identifiers have at least one uppercase letter.


Post a reply to this message

From: Alain Martel
Subject: Re: Strange error
Date: 7 Mar 2020 11:18:18
Message: <5e63c94a$1@news.povray.org>
Le 2020-03-06 à 19:27, Jörg "Yadgar" Bleimann a écrit :
> Hi(gh)!
> 
> While re-coding Melody's smooth mesh2 routine and running a test, I 
> encountered a strange error message:
> 
> File 'mesh2writer.pov' line 151: Parse Error: Expected 'undeclared 
> identifier',
>   float function 'no' found instead
> 
> This is the mentioned line:
> 
> #declare no = vcross(V_vec_Arr[3601]-V_vec_Arr[1], 
> V_vec_Arr[0]-V_vec_Arr[1]);
> 
> I can't see anything wrong with it... "no" is a vector (returned by 
> vcross), not a function!
> 
> What is this about?
> 
> See you in Khyberspace!
> 
> Yadgar

«no» is a builtin constant with a value of zero.
You can change it to «No» or «NO» and this will correct that error.

Remember to always have at least one upper case letter in any user 
defined variable.


Post a reply to this message

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