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

Oskar Linde oskar.lindeREM at OVEgmail.com
Thu Jun 21 05:52:52 PDT 2007


Don Clugston skrev:

> To avoid a new keyword...
> 
> int* d = cast(break const) b;
> 
> IMHO, we want something that looks really nasty.

Reusing break is brilliant! Another alternative:

int *d = break(const) b;

/Oskar



More information about the Digitalmars-d mailing list