[Issue 3830] opCmp among variant arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 16 07:43:27 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=3830



--- Comment #5 from bearophile_hugs at eml.cc 2014-02-16 07:43:20 PST ---
(In reply to comment #4)
> Scripting languages almost always have rich rules for comparison across unequal
> types, so I suppose that's an important convenience they offer.

In Python2.x you can compare and sort lists of anything, but in Python3 they
have made the type system more tight, and now you have to compare only
compatible types (so comparing an int and a string throws an exception).

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list