Re: [fpc-pascal] Subclassing generic records?

2017-07-21 Thread Martin Schreiber
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

Re: [fpc-pascal] Subclassing generic records?

2017-07-21 Thread Sven Barth via fpc-pascal
Am 21.07.2017 23:36 schrieb "Ryan Joseph" : > > Thanks Sven, that’s one way around it. > > So is it by design that records don’t have inheritance or is this planned? Yes, that's by design and there are no plans to change this. > and is it also by design that classes

Re: [fpc-pascal] Subclassing generic records?

2017-07-21 Thread Ryan Joseph
Thanks Sven, that’s one way around it. So is it by design that records don’t have inheritance or is this planned? and is it also by design that classes don’t allow operator overloads inside them? That seems like an omission since the way they’re implemented in records is much nicer imo. >

Re: [fpc-pascal] Subclassing generic records?

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

Re: [fpc-pascal] Subclassing generic records?

2017-07-17 Thread Ryan Joseph
> On Jul 17, 2017, at 10:58 AM, Sven Barth via fpc-pascal > 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

Re: [fpc-pascal] Subclassing generic records?

2017-07-17 Thread Sven Barth via fpc-pascal
Am 17.07.2017 18:24 schrieb "Ryan Joseph" : > > I’m trying to find a way to extend generic records since (as far as I know) there is no subclassing of records. I could use variant records here but these don’t work with generics so I tried record helpers and properties