[Issue 8672] %% operator

2013-05-27 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8672 --- Comment #12 from bearophile_h...@eml.cc 2013-05-27 04:53:16 PDT --- (In reply to comment #1) To say one version of modulus is bug prone and the other is not, is itself erroneous. I have just found another bug in my code caused by it,

[Issue 8672] %% operator

2012-09-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8672 --- Comment #10 from bearophile_h...@eml.cc 2012-09-17 09:59:26 PDT --- (In reply to comment #9) C99 leaves it as implementation defined. D defines it in the specification. Those are fundamentally different. In the table of the Wikipedia

[Issue 8672] %% operator

2012-09-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8672 --- Comment #11 from Walter Bright bugzi...@digitalmars.com 2012-09-17 12:02:34 PDT --- I didn't realize that C99 did specify it. Thanks for the correction. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email

[Issue 8672] %% operator

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8672 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 8672] %% operator

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8672 --- Comment #2 from Walter Bright bugzi...@digitalmars.com 2012-09-16 14:46:20 PDT --- *** Issue 7728 has been marked as a duplicate of this issue. *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You

[Issue 8672] %% operator

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8672 --- Comment #4 from Walter Bright bugzi...@digitalmars.com 2012-09-16 16:35:40 PDT --- The point is, the programmer has to take extra care regardless. All definitions of modulus are a land mine, as they are all arbitrary. There is no such

[Issue 8672] %% operator

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8672 --- Comment #5 from bearophile_h...@eml.cc 2012-09-16 17:06:26 PDT --- (In reply to comment #4) The point is, the programmer has to take extra care regardless. I am not the only one making mistakes with the C-style modulus, I know of other

[Issue 8672] %% operator

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8672 Jonathan M Davis jmdavisp...@gmx.com changed: What|Removed |Added CC|

Re: [Issue 8672] %% operator

2012-09-16 Thread ixid
Is there any use for the way C-style modulus interacts with negative numbers? It seems little more than broken on the basis of making positive number modulus operations efficient back when C was created.

Re: [Issue 8672] %% operator

2012-09-16 Thread bearophile
On Monday, 17 September 2012 at 01:15:56 UTC, ixid wrote: Is there any use for the way C-style modulus interacts with negative numbers? It seems little more than broken on the basis of making positive number modulus operations efficient back when C was created. This is not a group for

[Issue 8672] %% operator

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8672 --- Comment #7 from bearophile_h...@eml.cc 2012-09-16 19:16:51 PDT --- (In reply to comment #6) since there is no standard definition for it, Most computer languages have one of two definitions. C99 and D use one, I am talking about the

[Issue 8672] %% operator

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8672 --- Comment #8 from Jonathan M Davis jmdavisp...@gmx.com 2012-09-16 20:50:36 PDT --- Even Fortran is now and then adding important features today. Generally only dead languages stop changing. Please keep this in mind. If something is truly

[Issue 8672] %% operator

2012-09-16 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8672 --- Comment #9 from Walter Bright bugzi...@digitalmars.com 2012-09-16 20:53:43 PDT --- (In reply to comment #7) (In reply to comment #6) since there is no standard definition for it, C99 and D use one, C99 leaves it as implementation