[dmd-beta] const attribute etc

Andrej Mitrovic andrej.mitrovich at gmail.com
Sun Jun 2 16:35:54 PDT 2013


On 6/3/13, Andrei Alexandrescu <andrei at erdani.com> wrote:
> I think I have an understanding how that dual nature works for C++, but
> not in D. Could you please give more detail. Then we can merge that with
> the documentation, so you wouldn't have wasted time.

Oh yes, and then you can close this:
http://d.puremagic.com/issues/show_bug.cgi?id=9970

But from my limited understanding:

new const(C) -> type constructor
cast(const(C))(new C) -> type modifier
void foo(const(C)) -> type modifier

Correct? No?


More information about the dmd-beta mailing list