[fpc-devel] Defer keyword

Ryan Joseph genericptr at gmail.com
Fri May 7 00:17:52 CEST 2021



> On May 6, 2021, at 4:05 PM, Sven Barth via fpc-devel <fpc-devel at lists.freepascal.org> wrote:
> 
> Other than that, you're right and what Ryan is trying to do is definitely the intended purpose of try ... finally.
> 

Is there any runtime code involved with try..finally or does it just reorganize the code to run at the end of the block? My understanding of the defer keyword is that is was just a fancy way to move some code into a block which always gets run with a function exits.

Regards,
	Ryan Joseph



More information about the fpc-devel mailing list