[Issue 3827] automatic joining of adjacent strings is bad

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 16 21:34:19 PST 2010


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


Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com


--- Comment #21 from Steven Schveighoffer <schveiguy at yahoo.com> 2010-11-16 21:33:05 PST ---
(In reply to comment #17)
> (In reply to comment #5)
> > The error message for the missing ~ can be something like this (adapted from
> > the "'l' suffix is deprecated, use 'L' instead" error message generated by the
> > usage of a 10l long literal):
> > 
> > adjacent string literals concatenation is deprecated, add ~ between them
> > instead.
> 
> Better watch out for cases where just adding ~ changes the behaviour.
> 
> For example, if a is a string[], then a ~ "this" "that" and a ~ "this" ~ "that"
> evaluate to different strings.

doesn't this solve that problem? a ~ ("this" ~ "that")

BTW, I don't expect very many cases like this (in fact, I bet there are none).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list