On 14/05/20 12:36 am, Michael Van Canneyt wrote:
On Wed, 13 May 2020, Noel Duffy via fpc-pascal wrote:
On 13/05/20 9:24 pm, Bart via fpc-pascal wrote:
On Wed, May 13, 2020 at 10:40 AM Noel Duffy via fpc-pascal
As I've already learned the hard way, the sockets unit is compiled in
"fpc" mode, so there's no "out" parameters. Otherwise I would
definitely
have used one.
{$modeswicth out} perhaps?
I didn't know this existed. I'm not sure of the implications of its
use, though, so I would like to get the opinion of more experienced
FPC developers before I use it.
It's OK to use this. It just enables the use of the out keyword for the
current unit, nothing more.
It's safest to add it before the 'interface' keyword.
OK, I've made a note on the bug report to use {$modeswitch out} and to
use out parameters for the function definitions.
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal