Re: [fpc-pascal] Yet again Objects auto destruction

2013-04-20 Thread August Oktobar
Great idea! On Thu, Apr 18, 2013 at 3:55 PM, Zaher Dirkey wrote: > I think it is not the first time this topic was opened, but still think we > need when using object to have automatically destructor called by compiler > when the object freed > > TmyObject = object >FSQL: TStringList; >

[fpc-pascal] Yet again Objects auto destruction

2013-04-18 Thread Zaher Dirkey
I think it is not the first time this topic was opened, but still think we need when using object to have automatically destructor called by compiler when the object freed TmyObject = object FSQL: TStringList; constructor Init(SQL: string); destructor Free; end; constructor TmyObject.Ini