Implement @disable methods as always-throw methods?

Timon Gehr timon.gehr at gmx.ch
Sun Oct 2 13:34:49 PDT 2011


On 10/02/2011 10:05 PM, Walter Bright wrote:
> On 10/2/2011 10:59 AM, Timon Gehr wrote:
>> Imho disabling overriden member functions is unsound and should be
>> disallowed
>> entirely.
>
> I agree, as disabling an override doesn't make any sense. If the user
> wants an exception thrown if the overriding function is called, he can
> add a 'throw' in it himself.
>
> How about filing a bugzilla for this?

Done: http://d.puremagic.com/issues/show_bug.cgi?id=6760


More information about the Digitalmars-d mailing list