Slow performance compared to C++, ideas?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Jun 3 22:23:47 PDT 2013


On 6/4/13 1:05 AM, Simen Kjaeraas wrote:
> On Tue, 04 Jun 2013 06:16:45 +0200, Steven Schveighoffer
> <schveiguy at yahoo.com> wrote:
>
>> I think it is unfair to say most classes are not base classes. This
>> would mean most classes are marked as final. I don't think they are.
>> One of the main reasons to use classes in the first place is for
>> extendability.
>
> This is false. Consider this hierarchy: A->B->C, where x->y means 'x
> derives from y'. There is only one base class (A), and only one class
> that may be marked final (C). This will often be the case.

You two are in violent agreement. (B is also a base class, in addition 
to being a derived class.)


Andrei


More information about the Digitalmars-d mailing list