Isn't this what a COM Interface does - or at least a descendent of TInterfacedObject?

Tony Whyman

MWA


On 06/04/17 09:00, Ryan Joseph wrote:
Does it exist now or has it ever been discussed that a method in TObject could 
be called when an instance of an object goes out of scope? It’s common to clean 
up objects in a function body after the function exits and calling a method 
would be a nice way to handle this. I think c++ has such a feature but I never 
heard of it in Pascal.

Regards,
        Ryan Joseph

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


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

Reply via email to