Another init() bug, can we deprecate yet?

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Wed Jan 7 15:29:15 PST 2015


On Wed, Jan 07, 2015 at 10:03:00PM +0000, Peter Alexander via Digitalmars-d wrote:
> https://issues.dlang.org/show_bug.cgi?id=13806
> 
> For the lazy: BitArray has an init() method, which hides the property
> BitArray.init
> 
> This, or something similar, appears every few months. Walter has said
> in the past that the ability to override init is a feature. As far as
> I can tell, no one is using it as a feature; it only seems to cause
> trouble.
> 
> Can we just deprecate it? At the very least deprecate functions named
> init().

https://github.com/D-Programming-Language/phobos/pull/2854

Destroy!


T

-- 
You have to expect the unexpected. -- RL


More information about the Digitalmars-d mailing list