D2.0: an example of use-case for casting invariant away
Daniel Keep
daniel.keep.lists at gmail.com
Thu Jun 21 06:00:27 PDT 2007
Don Clugston wrote:
> To avoid a new keyword...
>
> int* d = cast(break const) b;
>
> IMHO, we want something that looks really nasty.
That's inspired, Don. No need for new keywords, *and* it perfectly
conveys what it's doing. I also like that it's somewhat longer than a
regular cast, since this is not the sort of thing you want to do lightly.
-- Daniel
More information about the Digitalmars-d
mailing list