Hairy Pixels <generic...@gmail.com> schrieb am Di., 3. Jan. 2023, 08:04:

>
>
> > On Jan 3, 2023, at 1:36 PM, Sven Barth <pascaldra...@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

>
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to