Help - can't ADD constness

Janice Caron caron800 at googlemail.com
Fri Sep 14 02:17:35 PDT 2007


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