lua-users home
lua-l archive

Re: bug in table.sort (lua 5.1.3)

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Luckily we are guaranteed by code earlier in auxsort that
> a[l]<=P, so when j==l a valid order function will always return
> false for cmp(P,a[j]), and end the loop, i.e., no error thrown.
> (Same thing for u and i.)
I would not call this "luck" :)
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /