lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
table.sort gives wrong result on partially ordered set
From
: Egor Skriptunoff <egor.skriptunoff@
...
>
Date
: Mon, 4 Jan 2021 01:47:40 +0300
$ lua
Lua 5.4.2 Copyright (C) 1994-2020 Lua.org, PUC-Rio
> nan = 0/0
> t = {nan, nan, 20, 10}
> table.sort(t)
> print(table.concat(t, ", "))
-nan, 20, -nan, 10
Follow-Ups
:
Re: table.sort gives wrong result on partially ordered set
,
Jonathan Goble
Re: table.sort gives wrong result on partially ordered set
,
Andrew Gierth
Re: table.sort gives wrong result on partially ordered set
,
Roberto Ierusalimschy
Prev by Date:
Re: feliz ano novo
Next by Date:
Re: table.sort gives wrong result on partially ordered set
Previous by thread:
Re: [ANN] Ravi 1.0 Beta5 release
Next by thread:
Re: table.sort gives wrong result on partially ordered set
Index(es):
Date
Thread