[#3986] Re: Principle of least effort -- another Ruby virtue. — Andrew Hunt <andy@...>

> Principle of Least Effort.

14 messages 2000/07/14

[#4043] What are you using Ruby for? — Dave Thomas <Dave@...>

16 messages 2000/07/16

[#4139] Facilitating Ruby self-propagation with the rig-it autopolymorph application. — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/07/20

[ruby-talk:03790] Re: Kernel.rand

From: matz@... (Yukihiro Matsumoto)
Date: 2000-07-04 03:15:45 UTC
List: ruby-talk #3790
Hi,

In message "[ruby-talk:03789] Re: Kernel.rand"
    on 00/07/03, Dave Thomas <Dave@thomases.com> writes:

|I can beat your bad news ;-)
|
|      ruby -e '(-11).divmod(3.5)'
|      -e:1: [BUG] Segmentation fault
|
|This is with the latest CVS

Oops, embarassing typo.

|I think it might be time to revert back to the old behavior, though...

No, the old behavior was inconsistent.  The options are

  * Python's way (modulo)
  * Current behavior
  * Current behavior + modulo

What else?

							matz.

--- numeric.c	2000/07/03 05:46:34	1.13
+++ numeric.c	2000/07/04 03:13:54
@@ -355,4 +355,3 @@
 {
-    double fy;
-    VALUE div, mod;
+    double fy, div, mod;
 

In This Thread