[fpc-pascal] Subclassing generic records?

Ryan Joseph ryan at thealchemistguild.com
Mon Jul 17 19:20:29 CEST 2017


> On Jul 17, 2017, at 10:58 AM, Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
> 
> I'll need to check whether Delphi allows that for helpers (doesn't matter whether the extended type is a specialization or not).
> 
> 

Thanks Sven. Records/objects/classes in Pascal feel very confused right now. Records are moving in the direction of legacy style “objects” which are allocated on the stack so I wonder why objects just don’t replace records already? Having said that why don’t classes just replace records/objects except they allocate on the stack? These 3 distinct constructs don’t really make sense more imo.

Regards,
	Ryan Joseph




More information about the fpc-pascal mailing list