[fpc-devel] Suggestion: reference counted objects

Peter Popov ppopov99 at gmail.com
Sun Sep 21 20:36:29 CEST 2014

Interfaces, among other things, are a way to bring in some features from  
multiple inheritance. I think the term is one-sided multiple inheritance.

If multiple inheritance is good or bad is a separate topic. With time, one  
begins to doubt the utility of classes in the first place and starts to  
appreciate ANSI C :-)

On Sun, 21 Sep 2014 21:28:24 +0300, Boian Mitov <mitov at mitov.com> wrote:

> Ahh... the schizophrenic nature of Object Pascal :-D, I never understood  
> why interface and class should be different at first place, considering  
> that interface is practically nothing more than pure abstract class with  
> ref. counting. Why the separated syntax etc. is beyond me... Surely  
> helps with the language keyword pollution....
> With best regards,
> Boian Mitov
> -------------------------------------------------------
> Mitov Software
> www.mitov.com
> -------------------------------------------------------
> From: Gennady Agranov
> Sent: Sunday, September 21, 2014 11:15 AM
> To: fpc-devel at lists.freepascal.org
> Subject: Re: [fpc-devel] Suggestion: reference counted objects
> Coming from Java I could not even comprehend at the beginning that if  
> variable type is interface - it is reference counted, but if variable  
> type is a class that implements interface - it is not ?!
> Regards,
> Gena

More information about the fpc-devel mailing list