[DGD] string indexing..
Bart van Leeuwen
bart at wotf.org
Wed Nov 26 23:56:01 CET 2003
On Wed, 26 Nov 2003, Noah Gibbs wrote:
> Actually, this is a known thing. It's the way it is
> on purpose. You're welcome to argue the point, but
> this has been discussed pretty extensively in the
> mailing list archives.
No need to argue it if that has been done before, its not the behavior I
desire, but well, its not that hard to change that for my own projects.
What I find odd however is that the actual check is in 3 different
places.. sometimes it comes down to str_range (calls from optimize.c where
only lower/opper boundaries are checked), usually str_ckrange is called
tho (which contains the same check as str_range does. guess there is a
reason to do the check beforehand, but it is rather unobvious to me :)
>
> --- Bart van Leeuwen <bart at wotf.org> wrote:
> > Hmm.. it seems to me that doing something like
> > "blah"[0..-1] should result
> > in an invalid string range error, but it does not,
> > it results in an empty
> > string (checked on dgd 1.1, 1.2p3).
>
>
> =====
> ------
> noah_gibbs at yahoo.com
>
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
> _________________________________________________________________
> List config page: http://list.imaginary.com/mailman/listinfo/dgd
>
_________________________________________________________________
List config page: http://list.imaginary.com/mailman/listinfo/dgd
More information about the DGD
mailing list