Eliminate redundancy of dup/idup
Timon Gehr
timon.gehr at gmx.ch
Sun Sep 9 09:36:04 PDT 2012
On 09/09/2012 06:32 PM, Timon Gehr wrote:
> On 09/09/2012 05:32 PM, kenji hara wrote:
>> ...
>> Then the elements of returned value keep original type modifier.
>> ...
>
> Usually .dup or .idup are used to explicitly change the type modifier,
> and they still allow type deduction.
> I'd be fine with having .dup be inout, .mdup mutable and .idup
> immutable.
Ignore that, I misunderstood.
More information about the Digitalmars-d
mailing list