Thread overview | ||||||
---|---|---|---|---|---|---|
|
November 18, 2006 [Issue 551] New: Modulo operator works with imaginary and complex operands | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=551 Summary: Modulo operator works with imaginary and complex operands Product: D Version: 0.174 Platform: PC URL: http://www.digitalmars.com/d/expression.html OS/Version: Windows Status: NEW Keywords: spec Severity: normal Priority: P4 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: deewiant@gmail.com OtherBugsDependingO 511 nThis: The spec states that "[t]he modulus operator only works with reals, it is illegal to use it with imaginary or complex operands." yet DMD accepts all of the following: void main() { creal c = 1 + 1i; c %= 2; ireal i = 3i % 2; real r = 3 % 3i; } -- |
October 04, 2007 [Issue 551] Modulo operator works with imaginary and complex operands | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=551 ------- Comment #2 from bugzilla@digitalmars.com 2007-10-04 01:02 ------- It's supported by the compiler, I'll change the docs. -- |
October 20, 2007 [Issue 551] Modulo operator works with imaginary and complex operands | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=551 braddr@puremagic.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #3 from braddr@puremagic.com 2007-10-20 04:01 ------- Docs updated in the 1.022/2.005 release to show that it's legal code. -- |
Copyright © 1999-2021 by the D Language Foundation