|
|
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
|
|