[fpc-pascal] GetMem question
Flávio Etrusco
flavio.etrusco at gmail.com
Fri Dec 1 12:00:29 CET 2006
(....)
> var
> lList : PPropList;
> begin
> lList := nil; // <<== New line, I expect to fix a FPC warning
> ...
> GetMem(lList, lSize);
>
> But it's created a warning in BDS2006
>
> Variable assigned to LList never used
> ---------------------------------------------
Simply put: the parameter is always discarded by GetMem, so the
parameter should be declared 'out'.
Cheers,
Flávio
More information about the fpc-pascal
mailing list