Hello.

Hum,...

I am guilty. ;-(

There was a SetLength(Bufferin, x) hidden.

So the length of bufferin into the function was not the same as the "pure"
one.

So, to resume:

If using: 

function arraycopy(arrayin : Tarrayfloat): Tarrayfloat; 
begin 
result := arrayin; 
end; 

==> Perfect, the input arrayin = result. ;-(

Sorry for the noise (but I m still open for other solutions than dealing
with dynamic arrays).
(But dynamic arrays are wow).

Thanks.

Fre;D







Fre;D



-----
Many thanks ;-)
--
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Array-as-result-in-function-tp5727366p5727379.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to