cast(!const) proposal
Derek Parnell
derek at psych.ward
Wed Sep 12 14:57:37 PDT 2007
On Wed, 12 Sep 2007 14:17:44 -0400, Steven Schveighoffer wrote:
> "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.
Yes! That is just right, and thus will never see the light of day :-)
--
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell
More information about the Digitalmars-d
mailing list