"wait" returns from a function like "return" ,it returns back to the calling function (if there's one),in this case it returns back to main ,and by then that function wich assigned the value to the vector already returned through wait.., after which wait is supposed to resume to the next code line where the vector is returned ,but all to late for the calling function , it makes no sense to me why one would want a "wait" if you return with a vector anyway ..

or I am confused in What's suppose to be , and my understanding of this failed terrible lol

jb

edit : oh I forgot , if you move the "wait" to the last line your function would work as you wrote it there however senseless outside a loop as it is there ...

Last edited by Wjbender; 02/24/15 19:01.

Compulsive compiler