Kill implicit joining of adjacent strings

Sean Kelly sean at invisibleduck.org
Thu Nov 11 12:37:16 PST 2010


Rainer Deyke Wrote:
> 
> As it turns out, the joining of adjacent strings is a critical feature.
>  Consider the following:
>   f("a" "b");
>   f("a" ~ "b");
> These are /not/ equivalent.

I would hope that the const folding mechanism would combine these at compile-time.  There's effectively no difference between a constant and an expression (without side-effects) that produces the same value.


More information about the Digitalmars-d mailing list