Coerce the contents of unquote-splice'd things to a list
This fixes the conversion issue in the following macro: (defmacro doodle [&rest body] `(do ~@body))
This commit is contained in:
parent
7a403a2660
commit
48dd968461
@ -610,7 +610,7 @@ class HyASTCompiler(object):
|
|||||||
level)
|
level)
|
||||||
imports.update(f_imports)
|
imports.update(f_imports)
|
||||||
if splice:
|
if splice:
|
||||||
to_add = f_contents
|
to_add = HyExpression([HySymbol("list"), f_contents])
|
||||||
else:
|
else:
|
||||||
to_add = HyList([f_contents])
|
to_add = HyList([f_contents])
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user