Why doesn't this work in D2?

Jacob Carlborg doob at me.com
Mon Jun 28 13:49:28 PDT 2010

On 2010-06-28 15:48, BCS wrote:
> Hello Jacob,
>> On 2010-06-28 02:28, BCS wrote:
>>> One solution would be to have templates strip off const/immutable
>>> from the top level of args.
> [...]
>>> This solution would match the proposal that popped up a while ago to
>>> allow value assignment from const/immutable to mutable.
>> I don't think I understand what you're showing here. How would I strip
>> off the const/immutable with a template ?
> I was proposing a language change Sorry for any confusion. The idea is
> that unless the user ask for it explicitly, there is no particular
> reason to preserve const/immutable for the value portion (true value
> types and the first level of references/pointers) of arguments.

Ok, now I understand.

/Jacob Carlborg

More information about the Digitalmars-d-learn mailing list