When is casting const() away actually necessary? (Used to be: Re: Why D const is annoying)
Alex Rønne Petersen
xtzgzorex at gmail.com
Wed May 2 09:52:32 PDT 2012
On 02-05-2012 17:58, Mehrdad wrote:
> Could someone mention a case where it is __necessary__ to cast away
> const()?
> How about immutable()?
> How about shared()?
shared? Almost always in any non-trivial application. shared is only
useful if you're dealing with templatized functions that can actually
handle it, which is not the case as often as one would like.
>
--
- Alex
More information about the Digitalmars-d
mailing list