[fpc-pascal] Array as result in function.

fredvs fiens at hotmail.com
Fri Jan 20 17:12:22 CET 2017


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.



More information about the fpc-pascal mailing list