Hello,
usually I have procedure with this format
procedure DoSomething(var Inp1, Inp2.. ; var Out1, Out2..);
In the procedure declaration the parameters are always sorted with the inputs first and the outputs last.
Typically, the output vars are uninitialized being their purpose to be set by the procedure itself.
However, this generates a lot of warning about uninitialized var.
To overcame this, it seems very easy to change the “var” with “out” in the procedure declaration, making also more evident the intentions and avoiding the warning.
procedure DoSomething(var Inp1, Inp2.. ; out Out1, Out2..);
Are there counterindications (side effects) on this approach? is this the recommended one?
Regards.
PS: here the editor does not recognize
out as reserved word and it is not shown in bold !