[1531] in Coldmud discussion meeting

root meeting help first previous next last

annoying behavior

daemon@ATHENA.MIT.EDU (Sat Dec 18 18:24:46 1999 )

From: bruce@puremagic.com
To: coldstuff@cold.org
Date: Sat, 18 Dec 1999 15:07:48 -0800 (PST)
Reply-To: coldstuff@cold.org

Hello.

This behavior is somewhat annoying:

;"".index("blah")  
! => Origin is beyond the range of the string.
!    Thrown by stridx
!    ~range: $string.index() line 3
!    ~methoderr: $user_bruce.tmp_eval_945558415() line 5
!    ~methoderr: $user_bruce<$programmer>.evaluate() line 25
[ seconds: 0.000082; operations: 3 ]

I understand why it happens, but it requires special-casing code that
shouldn't be required.

 - Bruce