const challenge

Janice Caron caron800 at googlemail.com
Sat Feb 2 03:48:49 PST 2008


On 2/2/08, Janice Caron <caron800 at googlemail.com> wrote:
> Still - nobody here was suggesting unique "on a whim". Rather, it was
> to solve a class of problems, the most obvious of which is to allow
> the following to compile:
>
>     string s;
>     char[] t;
>     char[] u = "hello" ~ s ~ t;

That said, we could always have a concatenation function in phobos:

    string s;
    char[] t;
    char[] u = cat("hello",s,t);



More information about the Digitalmars-d mailing list