POV-Ray : Newsgroups : povray.beta-test : Arrays.inc question : Arrays.inc question Server Time
30 Jul 2024 20:27:59 EDT (-0400)
  Arrays.inc question  
From: Rune
Date: 2 Oct 2001 16:40:07
Message: <3bba2627@news.povray.org>
Some of the macros in arrays.inc redefine array elements without using
semi-colons (;) in the end. This means that the macros work also if the data
in the arrays isn't floats or vectors. However, it also means that when
floats or vectors are used, lots of warnings are generated.

From my personal experience I've never needed arrays to contain anything
else than floats or vectors. And though there are many cases where it can be
useful to use other types of data in arrays, such as objects, the questions
is if the array manipulation macros are really needed in such cases? I can
only imagine the need to resize, reverse or sort an array that contains
floats or vectors, not other data.

But what do you think? Should semi-colons be added to the array macros?

The user can always modify the macros, so the question is what should be the
default set-up.

Rune


Post a reply to this message

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