cost of calling class function

Chris Wright via Digitalmars-d digitalmars-d at puremagic.com
Thu Feb 23 18:19:42 PST 2017


On Wed, 22 Feb 2017 18:31:37 -0800, Jonathan M Davis via Digitalmars-d
wrote:

> On Thursday, February 23, 2017 02:17:02 Jeremy DeHaan via Digitalmars-d
> wrote:
>> On Thursday, 23 February 2017 at 01:48:40 UTC, Seb wrote:
>> > AFAICT though it was approved, the switch to final by default has
>> > never happened.
>>
>> I believe Andrei made an executive decision to shut down final by
>> default.
> 
> Yeah, the change that introduced virtual to start the change to making
> class member functions non-virtual by default was actually committed,
> and then Andrei found out about it and insisted that it be reverted. So,
> it was reverted, and we're never going to get non-virtual by default.
> 
> - Jonathan M Davis

It's an interesting debate, but there's not a ton of reason to prefer one 
over the other design-wise. It can be considered for D3, but for D2, the 
ship has sailed.


More information about the Digitalmars-d mailing list