FPC is Delphi compatible regarding this. Dynamic arrays are passed by
reference, so you don't need var here. Please be aware when you directly
play with dynamic array contents, since it's actually a pointer to a record
in heap and it's reference counted.
-- 
View this message in context: 
http://free-pascal-general.1045716.n5.nabble.com/Correct-use-of-var-in-function-calls-tp3370050p3371072.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/mailman/listinfo/fpc-pascal

Reply via email to