A comparison between C++ and D
Adam D. Ruppe via Digitalmars-d
digitalmars-d at puremagic.com
Tue Mar 8 20:56:00 PST 2016
On Wednesday, 9 March 2016 at 04:37:47 UTC, maik klein wrote:
> Does this mean I could do any cast at compile time?
No, compile time has other restrictions.
http://dlang.org/spec/function.html#interpretation
"Any pointer may be cast to void * and from void * back to its
original type. Casting between pointer and non-pointer types is
prohibited. "
I don't think compile time execution allows unions, either.
More information about the Digitalmars-d
mailing list