1
0
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:
Calvin Rose
2020-02-23 17:35:01 -06:00
parent 05bd5767de
commit 734c85d7ef
2 changed files with 11 additions and 2 deletions

View File

@@ -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