Re: [fpc-pascal] Initialize object variables

2011-04-28 Thread Sven Barth
Am 28.04.2011 11:33, schrieb Howard Page-Clark: On 28/4/11 10:00, Jürgen Hestermann wrote: Darius Blaszyk schrieb: Is there any way to initialize object variables, other than writing an init method? So something like: myobj = object myvar: word = $; end; I don't think so. An object is a

Re: [fpc-pascal] Initialize object variables

2011-04-28 Thread Howard Page-Clark
On 28/4/11 10:00, Jürgen Hestermann wrote: Darius Blaszyk schrieb: Is there any way to initialize object variables, other than writing an init method? So something like: myobj = object myvar: word = $; end; I don't think so. An object is a pointer to a data structure on the heap. At compi

Re: [fpc-pascal] Initialize object variables

2011-04-28 Thread Jürgen Hestermann
Darius Blaszyk schrieb: Is there any way to initialize object variables, other than writing an init method? So something like: myobj = object myvar: word = $; 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 y

[fpc-pascal] Initialize object variables

2011-04-28 Thread Darius Blaszyk
Is there any way to initialize object variables, other than writing an init method? So something like: myobj = object myvar: word = $; end; Regards, Darius___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/m