D2.0: an example of use-case for casting invariant away

Jason House jason.james.house at gmail.com
Sun Jun 24 09:19:02 PDT 2007


Don Clugston wrote:
> int* d = cast(break const) b;
> 
> IMHO, we want something that looks really nasty.

Based on all the discussion in this thread, I like this alternative 
best.  I'd only insist that if someone did int *d = cast(int*) b; that 
the compiler would issue an error saying to use cast(break const) instead



More information about the Digitalmars-d mailing list