POV-Ray : Newsgroups : povray.beta-test : Can't undefine defined entry of array : Re: Can't undefine defined entry of array Server Time
30 Jul 2024 02:27:21 EDT (-0400)
  Re: Can't undefine defined entry of array  
From: Thorsten Froehlich
Date: 22 Jan 2002 08:00:26
Message: <3c4d626a@news.povray.org>

Skiba <abx### [at] babilonorg>  wrote:

>> No, it shouldn't.  What would the suggested change do?  Resize the array?
>
> Documentation says: "Large uninitialized arrays do not take much memory.
> Internally they are arrays of pointers so they probably use just 4 bytes per
> element. Once initialized with values, they consume memory depending on what
> you put in them."

Where is it and was it in the 3.1 docs as well?

>> It has never been stated that you can undef array elements.
>
> 6.2.2.4 says: "You may however un-define an identifier using the #undef
> directive." So what is identifier ? 6.2.2.1 answers imo that identifier is
> everything what can be declared. Entry of array can be declared and can be
> tested via ifdef(), ifndef(), defined().

Yes, but you do not declare the array identifier with this syntax, you
assign a value to it.  Without previously declaring the _array_ identifier
you cannot _assign_ a value to it.  You are confusing a declaration and
assignment statement here!

    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

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