[fpc-pascal] More fun with dynamic arrays

Jürgen Hestermann juergen.hestermann at gmx.de
Fri Nov 18 07:11:52 CET 2011



andrew.bennett at ns.sympatico.ca schrieb:
> Procedure Init(Out X : DataA ; Const N : Longint) ;
>
> 1) I substitute "Var" for "Out". This leads to the warning that X is not
> initialized.
>   
Which is correct. If you define a parameter to be for "out"put only the 
compiler does exactly this.


> 2) I substitute "Array Of Longint" for "DataA".
>
>   
I don't know why this should work if you still use "Out".



More information about the fpc-pascal mailing list