[ruby-talk:02578] Re: String.succ

From: matz@... (Yukihiro Matsumoto)
Date: 2000-04-26 07:49:38 UTC
List: ruby-talk #2578
Hi,

In message "[ruby-talk:02577] Re: String.succ"
    on 00/04/26, mrilu <mrilu@ale.cx> writes:

|Btw. the current implementation (1.5.quite_new) 
|     "\377\377".succ -> "\377\000"
|which does not fit into previous functionality classes and surprises me 
|anyway. Should we have more functionality classes?

I just hacked rb_str_succ() to do

  "\377\377".succ -> "\001\000\000"

							matz.

In This Thread

Prev Next