[fpc-pascal] Warning: Variable xxx does not seem to be initialized
Sven Barth
pascaldragon at googlemail.com
Tue Dec 31 09:33:18 CET 2013
Am 31.12.2013 00:48 schrieb "Dmitry Boyarintsev" <skalogryz.lists at gmail.com
>:
>
> Some new syntax has to be introduced to avoid the warning. Something like:
>
> type
> TMyRec = record
> record procedure Print;
> end;
>
> record procedure TMyRec.Print;
> begin
> writeln('foo');
> end;
We don't need a new syntax for something that already works:
=== code begin ===
type
TMyRec = record
class procedure Print; static;
end;
class procedure TMyRec.Print;
begin
writeln('foo');
end;
begin
TMyRec.Print;
end.
=== code end ===
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131231/5f8cb498/attachment.html>
More information about the fpc-pascal
mailing list