Purity, @safety, etc., in generic code

kenji hara k.hara.pg at gmail.com
Fri Feb 22 09:25:48 PST 2013


2013/2/23 deadalnix <deadalnix at gmail.com>

> On Friday, 22 February 2013 at 15:32:42 UTC, kenji hara wrote:
>
>> Yes, then the B's definition should raise "mutable A.foo() is not
>> overridden but hidden in B" (but doesn't because of bug 8366).
>>
>>
> I don't really understand why adding a special case for something that has
> no real use case.
>

In old age, it had thrown HiddenFuncError in runtime, and some years ago,
it had been changed to compile-time error.
It is one of design in D to avoid unintended method hiding issue.

Kenji Hara
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130223/72f07ffa/attachment.html>


More information about the Digitalmars-d mailing list