[fpc-pascal] Open array in object constructor gives error
Sven Barth
pascaldragon at googlemail.com
Tue Jan 3 09:12:10 CET 2023
Hairy Pixels <genericptr at gmail.com> schrieb am Di., 3. Jan. 2023, 08:04:
>
>
> > On Jan 3, 2023, at 1:36 PM, Sven Barth <pascaldragon at googlemail.com>
> wrote:
> >
> > Objects are not classes, they don't know the Object Pascal style syntax
> for creating them, instead you need to use the syntax for objects from TP
> times:
>
> But why do you need to use New if you just want a stack allocated object?
> The constructor is called without New I thought?
>
But then you don't use the type name either. You simply do "o.Create(...)".
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20230103/f72466a9/attachment.htm>
More information about the fpc-pascal
mailing list