Help - can't ADD constness
charles
charlie at d.com
Sat Sep 15 13:31:46 PDT 2007
Const is a god awful abomination that no language has gotten right, the
sooner its gotten rid of the better. No one I work with has ever had a
situation where const actually paid off.
Janice Caron wrote:
> PS.
>
> auto a = cast(const) new A();
> doesn't compile eiither. Error is
>
> Error: cannot implicitly convert expression (cast(const A)new A) of
> type const A to test.A
> (test is the module name)
>
> Now that's bizarre. It won't compile because auto gets the type wrong!
More information about the Digitalmars-d
mailing list