[Issue 3827] automatic joining of adjacent strings is bad
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 13 23:59:44 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3827
--- Comment #16 from Don <clugdbug at yahoo.com.au> 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))
{
// Convert (e ~ str) ~ str into e ~ (str ~ str)
CatExp *ce = ((CatExp *)e1);
e1 = ce->e1;
ce->e1 = ce->e2;
ce->e2 = e2;
e2 = ce;
+ e2 = e2->optimize(result);
}
--
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