complement to $

div0 div0 at users.sourceforge.net
Fri May 14 14:13:39 PDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.
http://www.ssTk.co.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFL7b0DT9LetA9XoXwRApO6AKCWIR0Yl0D1+qDTgnP619nlbbcgaQCeK18a
59Nl+g78KmlHX4C3RubCv88=
=0aI1
-----END PGP SIGNATURE-----


More information about the Digitalmars-d mailing list