[#1263] Draft of the updated Ruby FAQ — Dave Thomas <Dave@...>

33 messages 2000/02/08

[#1376] Re: Scripting versus programming — Andrew Hunt <andy@...>

Conrad writes:

13 messages 2000/02/15

[#1508] Ruby/GTK and the mainloop — Ian Main <imain@...>

17 messages 2000/02/19
[#1544] Re: Ruby/GTK and the mainloop — Yasushi Shoji <yashi@...> 2000/02/23

Hello Ian,

[#1550] Re: Ruby/GTK and the mainloop — Ian Main <imain@...> 2000/02/23

On Wed, Feb 23, 2000 at 02:56:10AM -0500, Yasushi Shoji wrote:

[#1516] Ruby: PLEASE use comp.lang.misc for all Ruby programming/technical questions/discussions!!!! — "Conrad Schneiker" <schneiker@...>

((FYI: This was sent to the Ruby mail list.))

10 messages 2000/02/19

[#1569] Re: Ruby: constructors, new and initialise — Yukihiro Matsumoto <matz@...>

The following message is a courtesy copy of an article

12 messages 2000/02/25

[ruby-talk:01282] Re: Buggette in String

From: matz@... (Yukihiro Matsumoto)
Date: 2000-02-09 17:11:41 UTC
List: ruby-talk #1282
Hi,

In message "[ruby-talk:01277] Buggette in String"
    on 00/02/09, Dave Thomas <Dave@thomases.com> writes:

|   ruby -e 'p "hello".index(/l/, -3)'  # -> nil
|   ruby -e 'p "hello".index("l", -3)'  # -> 2

Oops, String#index did not support negative offset.

|I suspect string.c:568 should change from
|
|	pos = rb_reg_adjust_startpos(sub, str, pos, 0);

I added the following code right before `switch' (l.564).

    if (pos < 0) {
	pos += RSTRING(str)->len;
	if (pos < 0) return Qnil;
    }

|but knowing for sure would mean understanding the regexp setup code,
|and I only have one life ;-)

Pretty complicated, isn't it?

							matz.
p.s.
I have two lives, life as a programmer and life as a father/husband. :-)

In This Thread

Prev Next