[fpc-pascal] Initialize object variables

J├╝rgen Hestermann juergen.hestermann at gmx.de
Thu Apr 28 11:00:43 CEST 2011

Darius Blaszyk schrieb:
> Is there any way to initialize object variables, other than writing an init method?
> So something like:
> myobj = object
>    myvar: word = $ffff;
> end;
I don't think so.
An object is a pointer to a data structure on the heap.
At compile time, this data structure is not yet allocated.

More information about the fpc-pascal mailing list