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 _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal