[fpc-pascal] Return value of StrToHostAddr and StrToHostAddr6 in sockets unit
Bart
bartjunk64 at gmail.com
Wed May 13 11:24:36 CEST 2020
On Wed, May 13, 2020 at 10:40 AM Noel Duffy via fpc-pascal
<fpc-pascal at lists.freepascal.org> wrote:
> > And maybe change the var into an out
I agree, it gives unnecessary warning about uninitialized variables.
> 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?
--
Bart
More information about the fpc-pascal
mailing list