From: nobu.nokada@... Date: 2002-01-26T11:19:14+09:00 Subject: Re: Subrange of String subclass => invalid object Hi, At Sat, 26 Jan 2002 02:05:45 +0900, Bob Alexander wrote: > Is this the intended consequence? For me it violated the "principle of least surprise". What did you expect? ----------------------------------------- S(otherValue: 77, "abcdefghij") ./rbug.rb:15:in `initialize: wrong number of arguments(1 for 2) (ArgumentError) from ./rbug.rb:15:in `[]' from ./rbug.rb:15 ----------------------------------------- Or? ----------------------------------------- S(otherValue: 77, "abcdefghij") S(otherValue: 77, "bcdefghi") ----------------------------------------- -- Nobu Nakada