digitalmars.D - implicit conversion & associative array.
- funog (9/9) Feb 08 2008 "Mutable and invariant types can be implicitly converted to const."
- Robert Fraser (2/16) Feb 08 2008 It's in your bug report.
"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? ^^
Feb 08 2008
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.
Feb 08 2008