Re: type_size_sort

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Morten Welinder
Date: Tuesday, December 6, 2005 - 5:51 pm

> It's perfectly correct. If the same list was to be passed to

That is not what the part  of the standard I quoted says.  It very
clearly forbids the sorting function from depending on the pointers'
values.  I can even see an implementation actually using this
requirement.

And it is well known that some qsort implementations will do nasty
things if the sorting order is not consistent.  I've seen Perl core
dumps on that account, although that is a while ago.

M.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
type_size_sort, Morten Welinder, (Tue Dec 6, 2:19 pm)
Re: type_size_sort, Andreas Ericsson, (Tue Dec 6, 2:38 pm)
Re: type_size_sort, Junio C Hamano, (Tue Dec 6, 2:45 pm)
Re: type_size_sort, Junio C Hamano, (Tue Dec 6, 2:46 pm)
Re: type_size_sort, Morten Welinder, (Tue Dec 6, 5:51 pm)
Re: type_size_sort, Junio C Hamano, (Tue Dec 6, 7:28 pm)
Re: type_size_sort, Morten Welinder, (Tue Dec 6, 8:01 pm)