[ruby-talk:02575] String.succ

From: Dave Thomas <Dave@...>
Date: 2000-04-26 05:32:03 UTC
List: ruby-talk #2575
Should

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

I _think_ I'd expect "\001\000".

Similarly, "".succ returns "\377", because it uses a carry that was
never set.


In reality, these are pathological, so I wouldn't call them
bugs. However, I'm wondering how to document them.


Dave

In This Thread

Prev Next