mirror of
https://github.com/janet-lang/janet
synced 2025-11-17 07:47:15 +00:00
Properly handle recursion with labels.
Use an empty buffer, which has pointer equality semantics, for tag from a label.
This commit is contained in:
@@ -317,7 +317,7 @@
|
||||
that will be bound to the label."
|
||||
[name & body]
|
||||
~(do
|
||||
(def ,name ',(gensym))
|
||||
(def ,name @"")
|
||||
,(apply prompt name body)))
|
||||
|
||||
(defn return
|
||||
|
||||
Reference in New Issue
Block a user