Re: [fpc-pascal] Object questions

2018-12-04 Thread Sven Barth via fpc-pascal
Am Di., 4. Dez. 2018, 08:00 hat Ryan Joseph geschrieben: > > > > On Dec 4, 2018, at 1:52 PM, Sven Barth via fpc-pascal < > fpc-pascal@lists.freepascal.org> wrote: > > > > The type of "Self" inside a object is always the same no matter if it's > allocated on the stack or the heap. > > Then there’s

Re: [fpc-pascal] Object questions

2018-12-03 Thread Ryan Joseph
> On Dec 4, 2018, at 1:52 PM, Sven Barth via fpc-pascal > wrote: > > The type of "Self" inside a object is always the same no matter if it's > allocated on the stack or the heap. Then there’s now way to do a free method like I showed? > > 2) Is there any TObject support in objects? I know

Re: [fpc-pascal] Object questions

2018-12-03 Thread Sven Barth via fpc-pascal
Am Di., 4. Dez. 2018, 04:06 hat Ryan Joseph geschrieben: > Some questions about old-style objects. > > 1) How can you check if self is assigned? self refers to the struct itself > but if the object was allocated on the stack then how do we know self is a > pointer or not? > > procedure TMyObject.