[fpc-devel] "Blank slate" next version of FPC

Ryan Joseph genericptr at gmail.com
Sat Feb 23 15:35:20 CET 2019



> On Feb 21, 2019, at 7:34 PM, Ben Grasset <operator97 at gmail.com> wrote:
> 
> The trick with enumerators is to never make them classes, and use advanced records instead, I've found. This way you avoid the heap allocation and the implicit try/finally. Also make sure you inline the MoveNext and GetCurrent! 
> 

Here’s this implicit try/finally block on heap allocation thing again. Can someone please explain this? Some months ago someone complained FPC was doing this on all TObject.Create calls. Is that true?

Regards,
	Ryan Joseph




More information about the fpc-devel mailing list