[fpc-pascal] Question on TFPGMap

Sven Barth pascaldragon at googlemail.com
Mon Jan 2 07:51:44 CET 2023


ppadilcdx--- via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am
Mo., 2. Jan. 2023, 02:29:

> Sorry copy and paste error. d = decode. Corrected below.  But I think I
> see what you mean.  Just assigning a type to decode doesn't initialize
> it. But the compiler is happy with it, i.e. it doesn't call as illegal
> the statement "decode.create".
>

That is because constructors can also be called as regular methods. But the
instance will only be created if you call a constructor using the type.

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20230102/37b227d9/attachment.htm>


More information about the fpc-pascal mailing list