[#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,
[#427] Re: New feature for Ruby?
— Clemens Hintze <c.hintze@...>
1999/07/02
On Fri, 02 Jul 1999, you wrote:
[#428] Re: New feature for Ruby?
— gotoken@... (GOTO Kentaro)
1999/07/03
Hi,
[#429] Re: New feature for Ruby?
— Clemens Hintze <c.hintze@...>
1999/07/03
On Sat, 03 Jul 1999, you wrote:
[#430] Re: New feature for Ruby?
— gotoken@... (GOTO Kentaro)
1999/07/05
Hi,
[#431] Re: New feature for Ruby?
— Clemens Hintze <c.hintze@...>
1999/07/07
On Mon, 05 Jul 1999, you wrote:
[#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:
[#452] Re: Now another totally different ;-)
— gotoken@... (GOTO Kentaro)
1999/07/11
Hi,
[#462] Re: Now another totally different ;-)
— matz@... (Yukihiro Matsumoto)
1999/07/12
Hello, there.
[#464] Re: Now another totally different ;-)
— Clemens Hintze <c.hintze@...>
1999/07/12
On Mon, 12 Jul 1999, you wrote:
[#467] Re: Now another totally different ;-)
— matz@... (Yukihiro Matsumoto)
1999/07/12
Hi,
[#468] Re: Now another totally different ;-)
— gotoken@... (GOTO Kentaro)
1999/07/12
In message "[ruby-talk:00467] Re: Now another totally different ;-)"
[#443] — Michael Hohn <hohn@...>
Hello,
26 messages
1999/07/09
[#444] interactive ruby, debugger
— gotoken@... (GOTO Kentaro)
1999/07/09
Hi Michael,
[#448] Re: interactive ruby, debugger
— "NAKAMURA, Hiroshi" <nakahiro@...>
1999/07/10
Hi,
[#450] Re: interactive ruby, debugger
— Clemens Hintze <c.hintze@...>
1999/07/10
On Sat, 10 Jul 1999, you wrote:
[#490] Some questions concerning GC in Ruby extensions — Clemens Hintze <c.hintze@...>
Hi matz,
6 messages
1999/07/14
[#501] Ruby 1.3.5 — Yukihiro Matsumoto <matz@...>
Ruby 1.3.5 is out, check out:
1 message
1999/07/15
[#519] CGI.rb — "Michael Neumann" <neumann@...>
Hi...
7 messages
1999/07/24
[#526] Another way for this? And a new proposal! — Clemens Hintze <c.hintze@...>
Hi,
6 messages
1999/07/25
[ruby-talk:00431] Re: New feature for Ruby?
From:
Clemens Hintze <c.hintze@...>
Date:
1999-07-07 18:46:05 UTC
List:
ruby-talk #431
On Mon, 05 Jul 1999, you wrote: >Hi, Hi, first sorry for my late response, but I have waited, if another one wants to post his/hers opinion. As that did not happen, I have decided to send a Ruby-written Interval class to the list as prove-of-concept as matz has supposed :-) 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! > >In message "[ruby-talk:00429] Re: New feature for Ruby?" > on 99/07/03, Clemens Hintze <c.hintze@gmx.net> writes: >>But I perhaps lack ability to write articles so that a magazin would >>publish it! But nevertheless, I will try it someday :-) > >I long for your articles! I will certainly send it to you before I give it to a magazin. But the problem is... Do you understand German? ;-) > >By the way, I also would like to translate Matz and his collaborator's >book about Ruby which will be published in near future in Japan. But I >need a collaborator who correct my Engrish if I'm permitted to >translate. I really would like to help... but I have the same problem like you! English is not my mother language. So I assume, I could translate such a book into German, but not into an error-free English. Nor could I correct somebodys English. It is not impossible, that I would miscorrect such a (formerly correct) text ;-) > >>But Ruby already have magical increment of Strings, means String#succ! >>And if I do a `"".succ' I will get an `"\377"'. As I didn't consider >>that behavior as the one one would expect, I have patched String#succ, >>so that it would raise an exception. > >That maybe important. I think succ is allowed to be non one-to-one >mapping, such that, str1.succ == str2.succ for str1 != str2. But >either str.pred.succ == str or str.succ.pred == str should be held for >arbitrary String str, I think. I second that. [...] >For such objects, I feel a suitable name is `Sequence' rather than >Interval. The name Sequence itself means descrete series, i.e., >enumerable and one dimensional. But Interval reminds me and >mathematicians so general region as it may be use to a continuum or a >higher dimensional structure. Other opinions? It seems only mine :-) I think, that Sequence would also be okay, perhaps. As I have told you, the name is coming from the Smalltalk world not from any logical or even mathematical insight! [...] >Hummm, Fixnum is distinct from Integer in its functions, especially, >the spacial cost. I've not recognized yet such major difference >between Range and Interval. I feel some of problems or restrictions on >Range seems to able to be solve by extending Range. I'd like to listen >other persons' (including Matz's again) opinions. That was my first proposal! Enhance Range, so that all that features would be offered by Range. The first patch, I've send to matz was such an enhancement of Range. But as I can also understand matz, saying, Range is defined as it is, if he wants a new class for that purpose. It really doesn't matter for me, whether we enhance the current Range class, write a new Interval class or even call that class Sequence! I only want all these features build-in into the interpreter, as it should be possible to iterate forth and back with every stepsize. *Damned*, every simple BASIC interpreter could do that! :-( It really hurts me, that the mighty Ruby have use some esoteric methods to archive the same goal :-( [...] >-- gotoken \cle
Attachments (1)
Interval.rb
(2.47 KB, application/x-sh)