Error: cannot implicitly convert expression () of typechar[5] to char[][]

jicman cabrera at wrc.xerox.com
Fri Feb 23 15:03:21 PST 2007


== Quote from Bradley Smith (digitalmars-com at baysmith.com)'s article
> jicman wrote:
> > Greetings.  I am receiving these errors,
> >
> > OpenJobs.d(2393): Error: cannot implicitly convert expression
> > ("Quote") of typechar[5] to char[][]
> > OpenJobs.d(2393): Error: cannot implicitly convert expression
> > ("Quotes\\") of type char[7] to char
> > OpenJobs.d(2394): Error: cannot implicitly convert expression
> > ("Language") of type char[8] to char[][]
> > OpenJobs.d(2394): Error: cannot implicitly convert expression
> > ("Deliverables\\") of type char[13] to char
> > OpenJobs.d(2395): Error: cannot implicitly convert expression
> > ("Technical") of type char[9] to char[][]
> > OpenJobs.d(2395): Error: cannot implicitly convert expression
> > ("Analysis\\") of type char[9] to char
> > OpenJobs.d(2396): Error: cannot implicitly convert expression
> > ((_aaKeys)((Proj),8u)) of type char[][][] to char[][]
> >
> > which is caused by these lines,
> >
> >
> > 2292    char[char[]] Proj;
> > 2293    Proj["Quote"]      = r"Quotes\";
> > 2294    Proj["Language"]   = r"Deliverables\";
> > 2295    Proj["Technical"]  = r"Analysis\";
> > 2296    char[][] pKeys     = Proj.keys;
> >
> > I went to the array page, and "I think" I am doing the declation
ok.
> >
> > Help.
> >
> > jic
> Should be
>    char[][char[]] Proj;
>    Proj["Quote"]      = r"Quotes\";
>    Proj["Language"]   = r"Deliverables\";
>    Proj["Technical"]  = r"Analysis\";
>    char[][] pKeys     = Proj.keys;

SO-No-vah!

Thanks.  Perhaps Walter may want to put a small example on the Array
page. :-)  All there is there is the int[char[]].  I knew it was
something simple, but yet, complex!

Again, muchas gracias.

jose


More information about the Digitalmars-d-learn mailing list