cast(!const) proposal

Steven Schveighoffer schveiguy at yahoo.com
Wed Sep 12 11:17:44 PDT 2007


"Janice Caron" wrote
> The syntax that I suggest for this is:
>
> auto q = cast(!const)p;

A crazy thought just occurred to me.  If we are successful in lobbying for 
the mutable keyword, I think this could become:

cast(mutable)p;

looks a lot more straightforward than !const, especially when ! is used in 
templates.

-Steve 





More information about the Digitalmars-d mailing list