[fpc-pascal] When to use and not use @?

2017-09-09 Thread Bo Berglund
Coming from Delphi I am a bit confused about the syntax when dealing with procedure arguments specified as var... In Delphi this is all taken care of by the compiler and the declaration of the procedure tells it how to deal with the arguments. Like so: procedure DoSomething(var Cnt: integer); ca

Re: [fpc-pascal] When to use and not use @?

2017-09-09 Thread Michael Van Canneyt
On Sun, 10 Sep 2017, Bo Berglund wrote: Coming from Delphi I am a bit confused about the syntax when dealing with procedure arguments specified as var... FPC is exactly the same regarding this. In Delphi this is all taken care of by the compiler and the declaration of the procedure tells