Cannot cast void* to arrays..?
H. S. Teoh
hsteoh at quickfur.ath.cx
Fri Feb 24 11:56:22 PST 2012
> 24.02.2012 21:34, simendsjo пишет:
> > char[] a;
> > auto b = cast(void*)a;
> > auto c = cast(char[])b; // Error: e2ir: cannot cast b of type
> >void* to type char[]
[...]
Just out of curiosity, what are you trying to accomplish with this cast?
In almost all normal D code, there's no need for any casting at all.
T
--
The right half of the brain controls the left half of the body. This
means that only left-handed people are in their right mind. -- Manoj
Srivastava
More information about the Digitalmars-d-learn
mailing list