No integer/float subtype: integral floats print as integers, next(t, k) with float k computed at runtime continues (#42 literal-only)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 12/100
Direzione di ricerca
Start with GAPS.md, which does not yet declare this gap, and with the three Lua snippets in the issue body, which show the reference output against EigenLua's current output. The next(t, k) float-key check lives on the fix-small-4 branch and only matches float literals passed at the call site. Done means either the runtime carries an integer/float subtype so the three snippets match as a Tier D row, or GAPS.md lists the consequences (integral-float printing, // and % by zero, the next cursor quirk, math.type).
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Found by the blind critic for fix-small-4 (#40/#42/#44/#45). Reproduces on origin/main 9536f4c.
EigenLua has no integer/float subtype at runtime: every Lua number becomes an EigenScript num. Several reference behaviours depend on the subtype:
print(1.0, "10.0"+1, math.type("10.0"+1)) -- ref: 1.0 11.0 float
print("1.0" // "0") -- ref: inf
local t = {}; t[1] = "one"; t[2.0] = "two"
local k = 1.0
print(pcall(next, t, k)) -- ref: false invalid key to 'next'
eigenlua: 1 11 integer, attempt to divide by zero, true 2 two.
The fix-small-4 branch makes next(t, 1.0) match only when a float literal is passed to next(...) or pcall(next, ...), using call-site metadata. A float that is computed, stored in a variable or table, passed through a vararg or select, or sent through coroutine.wrap(next) / pcall(pcall, next, ...) still continues instead of raising. Existing D rows that diverge for this reason: int_one_vs_one, str_format_num, ops_matrix (u- gives -0 float), and others.
GAPS.md does not declare this gap.
Done when
Either the runtime carries the subtype, so that the three lines above MATCH as a Tier D row, or GAPS.md declares the gap and lists the observable consequences (integral-float printing, // and % by zero, the next cursor quirk, math.type).
- Lingua principale
- Lua
- Stelle
- 0
- Fork
- 0
- Merge medio
- 54m
- PR unite (30g)
- 19
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di InauguralSystems/EigenLua
-
documentation good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
InauguralSystems/EigenLua#60 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
InauguralSystems/EigenLua#63 ·
I maintainer di solito rispondono entro 1 giorno
-
front-end good first issue
Difficoltà 3/5 Mezza giornata Idoneità per principianti 70/100
InauguralSystems/EigenLua#62 ·
I maintainer di solito rispondono entro 1 giorno
-
front-end good first issue
Difficoltà 3/5 Mezza giornata Idoneità per principianti 66/100
InauguralSystems/EigenLua#61 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement front-end help wanted
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
InauguralSystems/EigenLua#55 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di InauguralSystems/EigenLua
Issue simili
-
Add event count to export UIApertaFeature Request
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Questie/QuestieTrace#92 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
WitchAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
LuaLS/lua-language-server#3471 ·
-
RadlNavi Routing V2.3.5 Rechts/Links Kombinationen halb unterdrücktForse già presa @thomas-munichways l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
bug good first issue ready ticket
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
Domktorymysli/vclu#20 ·