POV-Ray : Newsgroups : povray.beta-test : Arrays of functions disallowed? Server Time
1 Nov 2024 19:16:56 EDT (-0400)
  Arrays of functions disallowed? (Message 1 to 5 of 5)  
From: Michael Andrews
Subject: Arrays of functions disallowed?
Date: 18 Mar 2002 07:58:03
Message: <3C95E64A.287B45D7@reading.ac.uk>
I tried to produce an array of functions with beta 13 and was told I was
redefining a function.

A short test code that gives the same error is

#declare fn_LT = array[2]
#declare fn_LT[0] = function { 1 }
#declare fn_LT[1] = function { 1 }

The third line produces the error message 'Parse Error: Redeclaring
functions is not allowed - #undef the function first!'

I believe this worked with beta 12.

System: 1GHz Athlon, 256MB, NT4 sp6, 3.5.beta.13.icl.win32

Bye for now.
    Mike Andrews


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Arrays of functions disallowed?
Date: 18 Mar 2002 09:47:06
Message: <3c95fdea@news.povray.org>
In article <3C95E64A.287B45D7@reading.ac.uk> , Michael Andrews 
<m.c### [at] readingacuk>  wrote:

> I believe this worked with beta 12.

Yes, it did because it was a bug:

>Newsgroups: povray.beta-test
>Subject: Known bugs 9 Mar 2002

>
> * Function redefinition bug
>   (Parser fails to trap some attempts to illegally redefined functions)
>   Reported in:
> can't redefine identifier
> http://news.povray.org/tis83ugh1kcc22h5o6is9qpkv61pjgunc0@4ax.com

    Thorsten

____________________________________________________
Thorsten Froehlich
e-mail: mac### [at] povrayorg

I am a member of the POV-Ray Team.
Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Michael Andrews
Subject: Re: Arrays of functions disallowed?
Date: 18 Mar 2002 10:05:06
Message: <3C960410.67BF9983@reading.ac.uk>
Hi Thorsten,

Thorsten Froehlich wrote:
> > * Function redefinition bug
> >   (Parser fails to trap some attempts to illegally redefined functions)
> >   Reported in:
> > can't redefine identifier
> > http://news.povray.org/tis83ugh1kcc22h5o6is9qpkv61pjgunc0@4ax.com

The bug reported in the above thread concerns redeclaring the same
(function) identifier. I am trying to assign (functions) to different
array entries. I may be wrong but I don't believe this is the same thing
...

Bye for now,
	Mike Andrews.


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Arrays of functions disallowed?
Date: 18 Mar 2002 10:45:48
Message: <3c960bac@news.povray.org>
In article <3C960410.67BF9983@reading.ac.uk> , Michael Andrews 
<m.c### [at] readingacuk>  wrote:

> different array entries

You are right.  The error message appears once the first function has been
assigned to the array.  This will be fixed in the next beta.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

From: Michael Andrews
Subject: Re: Arrays of functions disallowed?
Date: 18 Mar 2002 11:50:48
Message: <3C961CD8.173FADF2@reading.ac.uk>
Thorsten Froehlich wrote:
> This will be fixed in the next beta.

Thanks for that,
	Mike Andrews.


Post a reply to this message

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