[#3479] Missing .document files for ext/ libraries — Brian Candler <B.Candler@...>

The ri documentation for zlib, strscan and iconv doesn't get built by 'make

12 messages 2004/10/06

[#3492] Re: ANN: Free-form-operators patch — Markus <markus@...>

> In message "Re: ANN: Free-form-operators patch"

15 messages 2004/10/11
[#3493] Re: ANN: Free-form-operators patch — Yukihiro Matsumoto <matz@...> 2004/10/11

Hi,

[#3495] Re: ANN: Free-form-operators patch — Markus <markus@...> 2004/10/12

On Mon, 2004-10-11 at 16:16, Yukihiro Matsumoto wrote:

[#3561] 1.8.2 - what can we do to help? — Dave Thomas <dave@...>

Folks:

23 messages 2004/10/26
[#3562] Re: 1.8.2 - what can we do to help? — Yukihiro Matsumoto <matz@...> 2004/10/27

Hi,

range.c

From: "trans. (T. Onoma)" <transami@...>
Date: 2004-10-30 16:43:33 UTC
List: ruby-core #3653
HI --

I have been working on improving Range class today per discussions on 
ruby-talk. First I created a prototype in pure Ruby --that looks great. Then 
I delimited the changes into two groups: those readily doable (will not cause 
back-breakage) and those that are not.

So now I am working on the C source to incorporate readily doable changes 
--the main of which is to add an exclude_start? parameter. I have already 
done this and tested it. Works well. The only problem I have is how to change 
the hash method:

static VALUE
range_hash(range)
    VALUE range;
{
    long hash = EXCL(range);
    VALUE v;

    v = rb_hash(rb_ivar_get(range, id_beg));
    hash ^= v << 1;
    v = rb_hash(rb_ivar_get(range, id_end));
    hash ^= v << 9;
    hash ^= EXCL(range) << 24;
    hash ^= EXCLB(range) << 25;   /* 25? what number? */

    return LONG2FIX(hash);
}

Also, I am using 1.8.2pre2 code, should I be using 1.9?

Thanks,
T.

P.S. I will discuss further once I fix the above.


In This Thread

Prev Next