|
![](/i/fill.gif) |
I pulled the array topic into its own thread, as it was more appropriate.
But since you asked: I am defining the array outside of a macro, populating
it within an if conditional (lets just say inside() for sake of discussion),
and then subsequently loop through the array inside of another macro, to
place objects..
So what happens is when I define the array to be say, 50, outside of the
first function, the inside test might not return 50 valid positions with
which to populate the array, in one instance resulting in an array of
dimension_size 50 with only 28 valid populated values.
I used a counter within the if conditional to verify this.
This is all a consequence of various workarounds needed due to SDL array
scope implementation, or you could say because of a lack of List<T>
functionality as found in C#.
I think more common programming language functionality would do a lot to
expand the capabilities of SDL.
ian
"clipka" <nomail@nomail> wrote in message
news:web.49a3a441783ea673a5bc7c50@news.povray.org...
> "[GDS|Entropy]" <gds### [at] hotmail com> wrote:
>> The only issue that this has created has been arrays of unknown length,
>> which are difficult to loop against.
>
> How can an array be of unknown length in POV?
>
> You always have dimension_size() to give you the actual size of any array,
> or am
> I misunderstanding you?
>
>
>
>
Post a reply to this message
|
![](/i/fill.gif) |