[fpc-devel] Delphi anonymous methods

Michael Schnell mschnell at lumino.de
Mon Mar 4 11:27:04 CET 2013


On 03/04/2013 11:17 AM, Graeme Geldenhuys wrote:
>  Was "advanced records" really needed, NO.
As discussed in another thread:

It does make sense to allow for a kind of class that does not need to 
reside on the heap and, (residing on the stack or global space) does not 
need instantiation to gain memory space.

OTOH, for me it would be more straight forward to do this with a class 
flavor specification. And on top of this record would be obsolete (but 
should remain for compatibility) as such a class would be the same as a 
traditional record when no methods are defined.

(Issue: when assigning, with records the memory is copied, with classes 
only the pointer. This asks for some ambiguity)

-Michael



More information about the fpc-devel mailing list