Implicit conversion to mutable if no indirections?
Ali Çehreli
acehreli at yahoo.com
Sun Sep 4 13:45:16 UTC 2022
On 9/4/22 05:24, Salih Dincer wrote:
> On Sunday, 4 September 2022 at 11:03:53 UTC, Nick Treleaven wrote:
>> ```d
>> const i = 4; // const int
>> auto v = i; // int
>> const a = [0]; // const(int[])
>> auto s = a; // const(int)[]
>> ```
> P
> I got different results.
Nick Treleaven was showing how it could be *if* 'auto' actually worked
that way.
Ali
More information about the Digitalmars-d
mailing list