<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">ppadilcdx--- via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org">fpc-pascal@lists.freepascal.org</a>> schrieb am Mo., 2. Jan. 2023, 02:29:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sorry copy and paste error. d = decode. Corrected below. But I think I <br>
see what you mean. Just assigning a type to decode doesn't initialize <br>
it. But the compiler is happy with it, i.e. it doesn't call as illegal <br>
the statement "decode.create".<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven</div></div>