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:
Nicolas Dandrimont 2013-09-22 15:08:43 +02:00
parent 7a403a2660
commit 48dd968461

View File

@ -610,7 +610,7 @@ class HyASTCompiler(object):
level)
imports.update(f_imports)
if splice:
to_add = f_contents
to_add = HyExpression([HySymbol("list"), f_contents])
else:
to_add = HyList([f_contents])