concatenation

Daniel Murphy yebblies at nospamgmail.com
Wed Jan 26 18:08:20 PST 2011


"Ellery Newcomer" <ellery-newcomer at utulsa.edu> wrote in message 
news:ihl0vh$1n8v$1 at digitalmars.com...
> 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[] ?

This seems to be the same thing, or at least related
http://d.puremagic.com/issues/show_bug.cgi?id=1654 




More information about the Digitalmars-d-learn mailing list