[#1026] Is this a bug? — Dave Thomas <Dave@...>

18 messages 2000/01/03

[#1084] Infinite loop — Dave Thomas <Dave@...>

17 messages 2000/01/11

[#1104] The value of while... — Dave Thomas <Dave@...>

24 messages 2000/01/11

[ruby-talk:01167] Re: Possible bug in ruby-man-1.4

From: matz@... (Yukihiro Matsumoto)
Date: 2000-01-23 16:24:09 UTC
List: ruby-talk #1167
In message "[ruby-talk:01162] Possible bug in ruby-man-1.4"
    on 00/01/21, Dave Thomas <Dave@thomases.com> writes:

|I'm probably wrong (again), but doesn't
|
|    -13.remainder(-4)
|
|parse as
|
|    -(13.remainder(4))
|
|not
|
|    (-13).remainder(4)

You are right.  I'd like to hear your opinion about this.

  -13.remainder(4) => (-13).remainder(4) or -(13.remainder(4))
  -foo.remainder(4) => (-foo).remainder(4) or -(foo.remainder(4))

In This Thread