February 08, 2008 implicit conversion & associative array. | ||||
---|---|---|---|---|
| ||||
"Mutable and invariant types can be implicitly converted to const." int[int] array; const(int[int]) a = array; outputs: cannot implicitly convert expression (array) of type int[int] to const(int[int]) int[int] array; const(int[int]) a = cast(const)array; Compiles OK. ( DMD2.010 ) Where is my implicit conversion? ^^ |
February 08, 2008 Re: implicit conversion & associative array. | ||||
---|---|---|---|---|
| ||||
Posted in reply to funog | funog wrote:
> "Mutable and invariant types can be implicitly converted to const."
>
> int[int] array;
> const(int[int]) a = array;
>
> outputs:
> cannot implicitly convert expression (array) of type int[int] to const(int[int])
>
> int[int] array;
> const(int[int]) a = cast(const)array;
>
> Compiles OK. ( DMD2.010 )
>
> Where is my implicit conversion? ^^
It's in your bug report.
|
Copyright © 1999-2021 by the D Language Foundation