endsWith: wrong function call, no error

David Eagen davideagen at mailinator.com
Mon Oct 21 09:33:11 PDT 2013


On Monday, 21 October 2013 at 15:57:14 UTC, David Nadlinger wrote:
> Concatenation of string literals doesn't need to allocate, as 
> discussed here: 
> http://d.puremagic.com/issues/show_bug.cgi?id=3827. It's 
> trivial to handle the cases where you would've written 
> "string1" "string2" instead of "string1" ~ "string2". Once 
> overloaded operators come into play, it's a bit trickier, but 
> if this case really occurred in your program, you could always 
> add a pair of parens to fix it.
>
> See also this post by Walter: 
> http://forum.dlang.org/post/ibi742$gi2$1@digitalmars.com

Thanks for pointing that out. I've changed my stance then. It's 
causing difficult to find bugs and serves no useful purpose so it 
should go.

But since the thread you linked to is three years old it is 
apparently already decided and merely waiting implementation.


More information about the Digitalmars-d mailing list