[Issue 1486] New: Can't implicitly convert char[][] to const(char)[][]

Bruno Medeiros brunodomedeiros+spam at com.gmail
Fri Sep 7 17:27:51 PDT 2007


d-bugmail at puremagic.com wrote:
> http://d.puremagic.com/issues/show_bug.cgi?id=1486
> 
>            Summary: Can't implicitly convert char[][] to const(char)[][]
>            Product: D
>            Version: 2.004
>           Platform: PC
>         OS/Version: Windows
>             Status: NEW
>           Severity: normal
>           Priority: P2
>          Component: DMD
>         AssignedTo: bugzilla at digitalmars.com
>         ReportedBy: reiner.pope at gmail.com
> 
> 
> The following code fails to compile, with error "cannot implicitly convert
> expression (a) of type char[][] to const(char)[][]". However, it appears to be
> a valid operation.
> 
> void main() {
>     char[][] a;
>     string[] b = a;
> }
> 
> 

Finally! I actually knew about this bug some time ago (2-4 months), when 
I updated some of my D shell scripts to D 2.0. I purposefully didn't 
report since I wanted to see how long it would take until someone else 
did. It seemed such a common problem (I have very little D code written, 
yet I stumbled upon it quickly), that I'm somewhat surprised it took 
this long for someone to report it. Isn't there that many people using 
D2.0 features or what?

-- 
Bruno Medeiros - MSc in CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D


More information about the Digitalmars-d-bugs mailing list