complement to $
div0 at users.sourceforge.net
Fri May 14 14:13:39 PDT 2010
-----BEGIN PGP SIGNED MESSAGE-----
Nick Sabalausky wrote:
> I think 0 makes perfect sense for any ordered container, or, really,
> anything for which $ makes sense (plus some things for which $ doesn't make
> sense, like an right-infinite range). However, the rest of your argument
> convinced me.
What if you order by > instead of <, then 0 should be the end surely.
Also what if you have an array that you can access with a negative
index? Then 0 is at some indeterminate point in the range.
Ok it's pretty bloody rare to have arrays like that, but I've done it a
couple of times before now.
My enormous talent is exceeded only by my outrageous laziness.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
More information about the Digitalmars-d