[Issue 2955] Compiler rejects chained <>=

2014-04-18 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=2955

Walter Bright  changed:

   What|Removed |Added

Version|1.041   |D1

--


[Issue 2955] Compiler rejects chained <>=

2011-01-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2955


Andrei Alexandrescu  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 CC||and...@metalanguage.com
 Resolution||WONTFIX


--- Comment #4 from Andrei Alexandrescu  2011-01-08 
16:17:12 PST ---
I think we're good as we are.

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


[Issue 2955] Compiler rejects chained <>=

2009-05-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2955


jarrett.billings...@gmail.com changed:

   What|Removed |Added

   Severity|normal  |enhancement
 Status|RESOLVED|REOPENED
 Resolution|INVALID |




--- Comment #3 from jarrett.billings...@gmail.com  2009-05-09 20:46 ---
Fair enough :)


-- 



[Issue 2955] Compiler rejects chained <>=

2009-05-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2955





--- Comment #2 from lijat...@gmail.com  2009-05-09 20:05 ---
In that case I think that a better error message would be needed. The current
one left me confused about if it was a compiler bug or by design.


-- 



[Issue 2955] Compiler rejects chained <>=

2009-05-09 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=2955


jarrett.billings...@gmail.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID




--- Comment #1 from jarrett.billings...@gmail.com  2009-05-09 10:31 ---
This is by design.  Comparison operators cannot be chained like this.  C
accepts such foolishness as "a < b < c" even though it doesn't do what you'd
expect (i.e. it doesn't evaluate to "a < b && b < c").  D changed all
comparison operators to have the same precedence so that this kind of code
would not be accepted, and for possible future expansion in which chained
comparisons really would be converted into multiple clauses.


--