Re: [fpc-devel] Multiple inheritance

2017-08-25 Thread Kostas Michalopoulos
Yeah, that would be helpful for when you need to use a more compositive approach and when you want an object to take on multiple roles (e.g. some sort of mediator or controller). Currently you need to create subclasses for every role but those classes are only use once with the mediator for a singl

Re: [fpc-devel] Multiple inheritance

2017-08-19 Thread Ondrej Pokorny
On 19.08.2017 9:27, Sven Barth via fpc-devel wrote: The designers of Object Pascal decided on purpose against multiple inheritance as they probably saw the problems that C++ has with them. Even Java and C#, both clearly influenced by C++ don't support multiple inheritance. Just think about on

Re: [fpc-devel] Multiple inheritance

2017-08-19 Thread Sven Barth via fpc-devel
Am 19.08.2017 09:12 schrieb "Ondrej Pokorny" : > > Hello! > > Has anybody thought about multiple inheritance in object pascal? I am now working on a client-server service that entirely uses ORM. I have several patterns that repeat all over and some of them do not match into the direct inheritance s

[fpc-devel] Multiple inheritance

2017-08-19 Thread Ondrej Pokorny
Hello! Has anybody thought about multiple inheritance in object pascal? I am now working on a client-server service that entirely uses ORM. I have several patterns that repeat all over and some of them do not match into the direct inheritance schema. For now I solved multiple inheritance wit