[fpc-pascal] Out of scope method?

Ryan Joseph ryan at thealchemistguild.com
Thu Apr 6 10:00:52 CEST 2017


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




More information about the fpc-pascal mailing list