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

Reply via email to