On 1/21/13, Mattias Gaertner <[email protected]> wrote:
> The lower-than and greater-than operators are defined for > strings. Do you want to remove them too? > > >> Ranges for strings are (countably) infinite, and this is (by design) >> not the case in the case of other cases (pun intended). No, you are missing the analogy I meant (or I did not make myself clear enough). Case was originally meant for Ordinal values. With Ordinal values ranges (1..100, 'a'..'z') are never infinite. Pascal has never had the concept of ranges (in this sense) that are infinite (countable or uncoutable). You cannot define ranges for Floats (they would be uncoutable infinite), and by that analogy I would suggest you should not be able to define ranges for strings, as they are (coutbale) infinite. The ability to have an infinite (countable or uncoutable) "range" between two values for a given type however, does not mean you should not have lesser than, or greater than operators. If this were the case we'ld have to remove them for floats as well, and that would be rather silly. So my analogy was more with floats (but they have uncoutable infinite ranges, as opposed to coutable infinity for strings). Bart -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
