[Issue 3827] automatic joining of adjacent strings is bad

2014-01-20 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=3827 bearophile_h...@eml.cc changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|DU

[Issue 3827] automatic joining of adjacent strings is bad

2014-01-20 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=3827 bearophile_h...@eml.cc changed: What|Removed |Added CC||dfj1es...@sneakemail.com ---

[Issue 3827] automatic joining of adjacent strings is bad

2014-01-19 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=3827 yebblies changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 3827] automatic joining of adjacent strings is bad

2014-01-19 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=3827 monarchdo...@gmail.com changed: What|Removed |Added CC||monarchdo...@gmail.com --- Co

[Issue 3827] automatic joining of adjacent strings is bad

2012-03-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 Andrej Mitrovic changed: What|Removed |Added CC||andrej.mitrov...@gmail.com --- Comme

[Issue 3827] automatic joining of adjacent strings is bad

2012-03-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #26 from bearophile_h...@eml.cc 2012-03-10 17:31:34 PST --- An example of the problems this avoids:http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.announce&article_id=22649 Andrej Mitrovic: > I see you are

[Issue 3827] automatic joining of adjacent strings is bad

2011-03-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #25 from bearophile_h...@eml.cc 2011-03-20 04:29:08 PDT --- See also: http://stackoverflow.com/questions/2504536/why-allow-concatenation-of-string-literals -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=em

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-22 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #24 from bearophile_h...@eml.cc 2010-11-22 12:01:40 PST --- A recent note by Walter: > Andrei's right. This is not about making it right-associative. It is about > defining in the language that: > > ((a ~ b) ~ c) > > is guaran

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #23 from Sobirari Muhomori 2010-11-17 12:04:03 PST --- If constfold can access a's type, it can make the right decision. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #22 from Stewart Gordon 2010-11-17 03:58:08 PST --- (In reply to comment #21) > doesn't this solve that problem? a ~ ("this" ~ "that") It does. My point was that somebody might accidentally not add the brackets. -- Configure iss

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 Steven Schveighoffer changed: What|Removed |Added CC||schvei...@yahoo.com --- Comment

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #20 from bearophile_h...@eml.cc 2010-11-16 19:38:56 PST --- (In reply to comment #19) > (In reply to comment #17) > > Not that there's any real use case for "this" "that" anyway. And those rare > > use cases > > I use automatic joi

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 nfx...@gmail.com changed: What|Removed |Added CC||nfx...@gmail.com --- Comment #19 fro

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #18 from Stewart Gordon 2010-11-16 17:15:03 PST --- (In reply to comment #17) > For example, if a is a string[], then a ~ "this" "that" and a ~ "this" ~ > "that" > evaluate to different strings. Different string arrays even. --

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 Stewart Gordon changed: What|Removed |Added CC||s...@iname.com --- Comment #17 from S

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #16 from Don 2010-11-13 23:58:35 PST --- Sorry, missed out a line: if (e1->op == TOKcat && (e2->op == TOKstring || e2->op == TOKnull) && (((CatExp *)e1)->e2->op == TOKstring || ((CatExp *)e1)->e2->op == TOKnull))

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 Don changed: What|Removed |Added CC||clugd...@yahoo.com.au --- Comment #15 from Don

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #14 from Ellery Newcomer 2010-11-13 19:26:18 PST --- you don't need to mess with associativity rules, you just need to be able to handle two or three ast cases: 1. (~ str str)ie str ~ str 2. (~ (~ x str) str) ie x ~ str

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-13 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #13 from bearophile_h...@eml.cc 2010-11-13 19:19:03 PST --- (In reply to comment #12) A comment from Stewart Gordon: > You mean make ~ right-associative? I think this'll break more code than > it fixes. > > But implementing a comp

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #12 from bearophile_h...@eml.cc 2010-11-12 04:32:16 PST --- A comment from Andrei Alexandrescu: Walter, please don't forget to tweak the associativity rules: var ~ " literal " ~ " literal " concatenates literals first. -- Configure

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #11 from bearophile_h...@eml.cc 2010-11-12 04:24:57 PST --- Walter agrees: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=121830 -- Configure issuemail: http://d.puremagic.com/issues/userprefs

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #10 from bearophile_h...@eml.cc 2010-11-10 18:21:06 PST --- The C# language, that has a very refined design, refuses this code, showing that it doesn't perform automatic joining of adjacent strings: public class Test { public s

[Issue 3827] automatic joining of adjacent strings is bad

2010-11-10 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #9 from bearophile_h...@eml.cc 2010-11-10 18:17:17 PST --- Another bug caused in my code by that anti-feature: unittest { auto tests = [["", ""], ["12346", ""], ["he", "H000"], ["soundex", "S532"], ["e

[Issue 3827] automatic joining of adjacent strings is bad

2010-08-21 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #8 from bearophile_h...@eml.cc 2010-08-21 13:38:59 PDT --- A particularly nice example of why untidy syntax easily leads to bugs (this comes from two different sources of sloppiness of the D2 language): enum string[5] data = ["gree

[Issue 3827] automatic joining of adjacent strings is bad

2010-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #7 from bearophile_h...@eml.cc 2010-06-20 16:51:06 PDT --- I know Python, but I hope D will become better than Python on this syntax detail. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You

[Issue 3827] automatic joining of adjacent strings is bad

2010-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 Ellery Newcomer changed: What|Removed |Added CC||ellery-newco...@utulsa.edu --- Comme

[Issue 3827] automatic joining of adjacent strings is bad

2010-06-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #5 from bearophile_h...@eml.cc 2010-06-20 16:19:15 PDT --- 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 lon

[Issue 3827] automatic joining of adjacent strings is bad

2010-02-28 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 Alexey Ivanov changed: What|Removed |Added CC||aifg...@gmail.com --- Comment #4 from

[Issue 3827] automatic joining of adjacent strings is bad

2010-02-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #3 from bearophile_h...@eml.cc 2010-02-18 15:03:33 PST --- > Thank you. But is DMD doing the joining with ~ at compile time? If not, then > you can add that optimization to your patch (if you are able to). And if you think it's need

[Issue 3827] automatic joining of adjacent strings is bad

2010-02-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #2 from bearophile_h...@eml.cc 2010-02-18 14:55:40 PST --- (In reply to comment #1) > Created an attachment (id=571) [details] > patch for parse.c > > Vote++ and patch Thank you. But is DMD doing the joining with ~ at compile time?

[Issue 3827] automatic joining of adjacent strings is bad

2010-02-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=3827 --- Comment #1 from Alexey Ivanov 2010-02-18 14:35:32 PST --- Created an attachment (id=571) patch for parse.c Vote++ and patch -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mai