Beta D 2.068.1-b2

Meta via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Wed Sep 2 08:51:10 PDT 2015


On Tuesday, 1 September 2015 at 19:15:48 UTC, Jacob Carlborg 
wrote:
> On 2015-09-01 15:40, Steven Schveighoffer wrote:
>
>> I'm not 100% sure, but that does seem like a bug.
>>
>> You should be able to completely mask toString from a base 
>> class if you
>> don't specify override IMO.
>
> Perhaps we need an explicit way to tell the compile we want to 
> hide a method in the base class. C# uses the "new" keyword for 
> this if I recall correctly.

Isn't that what `override` is for?


More information about the Digitalmars-d-announce mailing list