POV-Ray : Newsgroups : povray.binaries.images : Strange error : Re: Strange error Server Time
19 Apr 2024 14:17:31 EDT (-0400)
  Re: Strange error  
From: Cousin Ricky
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

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