~technomancy/fennel#122: 
empty list in values binding generates bad code

(local () (values))
Bad code generated - likely a bug with the compiler:
--- Generated Lua Start ---
local  = nil
local ___i___ = 1
while true do
 local name, value = debug.getlocal(1, ___i___)
 if(name and name ~= "___i___") then
 ___replLocals___[name] = value
 ___i___ = ___i___ + 1
 else break end end
return nil--- Generated Lua End ---

Also happens with other binding forms.

Status
RESOLVED CLOSED
Submitter
~andreyorst
Assigned to
No-one
Submitted
a month ago
Updated
a month ago
Labels
No labels applied.

~technomancy REPORTED CLOSED a month ago

Good catch; thanks.

Fixed in 58ed229.

Register here or Log in to comment, or comment via email.