concatenation

Simen kjaeraas simen.kjaras at gmail.com
Mon Jan 24 15:39:39 PST 2011


Ellery Newcomer <ellery-newcomer at utulsa.edu> wrote:

> in the following:
>
> void main(){
>    char[] x;
>    string s;
>    string y;
>
>    y = s ~ x;
> }
>
> tok.d(5): Error: cannot implicitly convert expression  
> (cast(const(char)[])s ~ x) of type char[] to string
>
> why should typeof(s ~ x) == char[] ?

http://d.puremagic.com/issues/show_bug.cgi?id=1654

-- 
Simen


More information about the Digitalmars-d-learn mailing list