[fpc-pascal] Subclassing generic records?
Martin Schreiber
mse00000 at gmail.com
Sat Jul 22 07:40:39 CEST 2017
On Friday 21 July 2017 23:04:20 Ryan Joseph wrote:
> Thanks Sven, that’s one way around it.
>
> So is it by design that records don’t have inheritance or is this planned?
>
MSElang has a concept of unified record, object and class constructs. There a
record is a simplified object which never has a VMT and has no methods. An
object has a VMT only if the attribute [virtual] is given. An object can be
instantiated in global or stack memory or on heap if it has a constructor()
and destructor().
A class is an object which always is instantiated on heap and which provides
implicit dereferencing. Classes can inherit from objects.
https://gitlab.com/mseide-msegui/mselang/wikis/home/mselang_objects
https://gitlab.com/mseide-msegui/mselang/wikis/home
(under construction).
Martin
More information about the fpc-pascal
mailing list