On Sun, 09 Nov 2014 22:17:33 +0000
bearophile via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com>
wrote:

> eles:
> 
> > I am also strongly in favor of introducing an "uncast". For 
> > example, in C++'x const_cast and in D's cast for removing, for 
> > example immutability:
> >
> > immutable int* p = ...;
> > int* q = cast(int*)p;
> 
> I think this is supposed to work:
> 
> void main() {
>      immutable int* p;
>      int* q = cast()p;
> }
it works for simple types, like 'immutable int a'. but for
'immutable(int*) a' it returns 'immutable(int)* a'.

Attachment: signature.asc
Description: PGP signature

Reply via email to