[#407] New feature for Ruby? — Clemens.Hintze@...

Hi all,

27 messages 1999/07/01
[#413] Re: New feature for Ruby? — matz@... (Yukihiro Matsumoto) 1999/07/01

Hi Clemens,

[#416] Re: New feature for Ruby? — Clemens Hintze <c.hintze@...> 1999/07/01

On Thu, 01 Jul 1999, Yukihiro Matsumoto wrote:

[#418] Re: New feature for Ruby? — gotoken@... (GOTO Kentaro) 1999/07/01

Hi

[#426] Re: New feature for Ruby? — gotoken@... (GOTO Kentaro) 1999/07/02

Hi,

[#440] Now another totally different ;-) — Clemens Hintze <c.hintze@...>

Hi,

21 messages 1999/07/09
[#441] Re: Now another totally different ;-) — matz@... (Yukihiro Matsumoto) 1999/07/09

Hi,

[#442] Re: Now another totally different ;-) — Clemens Hintze <c.hintze@...> 1999/07/09

On Fri, 09 Jul 1999, you wrote:

[#443] — Michael Hohn <hohn@...>

Hello,

26 messages 1999/07/09
[#444] interactive ruby, debugger — gotoken@... (GOTO Kentaro) 1999/07/09

Hi Michael,

[ruby-talk:00432] Re: New feature for Ruby?

From: matz@... (Yukihiro Matsumoto)
Date: 1999-07-08 01:59:36 UTC
List: ruby-talk #432
Hi,

This is not a comment for your code, sorry.  I will check it later. 

In message "[ruby-talk:00431] Re: New feature for Ruby?"
    on 99/07/07, Clemens Hintze <c.hintze@gmx.net> writes:

|That class with a test is attached on that mail. Please consider, that
|I had to write a dummy MyInt class, which do the same as the original
|Integer class, as there are no Integer#succ and Integer#pred methods
|with optional stepsize argument. If we already had them, I would not
|need MyInt!

You can replace the methods of existing class.  For exapmle,

  class Integer
    def succ(n=1)
      ...
    end
    alias next succ
    def pred(n=1)
      ...
    end
    alias prev pred
  end

will do the job for you.  Oh, how dynamic Ruby is. :-)

                                                matz.

In This Thread