www.digitalmars.com         C & C++   DMDScript  

D - bug: array concatenation

reply "Pavel Minayev" <evilone omen.ru> writes:
Try this:

    char[] a = "foo", b = "bar", c = a ~ b;

It says "incompatible types ...". The same happens when ~='ing
char[] to a char[]. What's wrong?
Feb 01 2002
parent reply "Pavel Minayev" <evilone omen.ru> writes:
On other hand, this works as it should:

    char[] a = "foo";
    char[] b = "bar";
    char[] c = a ~ b;

Seems like yet another bug related to declaring multiple
variables at once...
Feb 01 2002
parent "Walter" <walter digitalmars.com> writes:
It is. I need to rewrite that part of the parser. -Walter

"Pavel Minayev" <evilone omen.ru> wrote in message
news:a3f2os$n14$1 digitaldaemon.com...
 On other hand, this works as it should:

     char[] a = "foo";
     char[] b = "bar";
     char[] c = a ~ b;

 Seems like yet another bug related to declaring multiple
 variables at once...
Feb 01 2002