Problems with vectors

Found a bug? Post information about it here so we can fix it!

Moderator: Moderators

Post Reply
User avatar
Rado1
Posts: 775
Joined: Wed May 05, 2010 12:16 pm

Problems with vectors

Post by Rado1 »

1. Problems with passing vectors from arrays as parameter values of function calls. For example, running the attached model throws different exceptions, such as Access violation, Array out of range, or Out of memory. Sometimes it produces incorrect outputs (function foo() returns 0 in the second call) without exceptions.

2. The following expression throws "Assertion failure" exception:

Code: Select all

trace(intToStr(vector3(1,2,3)[0]));
, but this does not:

Code: Select all

vec3 v = vector3(1,2,3);
trace(intToStr(v[0]));
Attachments
example.zgeproj
example of incorrect behavior
(530 Bytes) Downloaded 506 times
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Post by VilleK »

There seems to be several problems still present with the new array types as this bug report clearly demonstrates. I'll have to wait with fixing it until I have more time, hopefully soon.
Post Reply