bakpakin / Fennel

Lua Lisp Language
https://fennel-lang.org
MIT License
2.44k stars 126 forks source link

Scope issue in fennel-lang.org repl? #243

Closed ergodicbreak closed 4 years ago

ergodicbreak commented 4 years ago

Hi, I ran into confusing output in the fennel-lang.org repl:

Welcome to Fennel 0.3.2, running on Fengari (Lua 5.3)

You can run any Fennel code here; try this: (print "Hello world!")

(local tbl [[] [] []])

(var foo (. tbl 1))

(set foo nil) Compile error in 'set' unknown:1: expected local var foo

From help in IRC this sounds like something peculiar to the fennel-lang.org repl.

jaawerth commented 4 years ago

I can confirm the behavior on the website.

From help in IRC this sounds like something peculiar to the fennel-lang.org repl.

I suspect this is the case, in which case we might want to re-create this issue on the fennel-lang.org repo

ergodicbreak commented 4 years ago

Thanks, I'll move it there.