From bcfd6d1db92260f3453f9733db727bf408a0732d Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 19 Jan 2009 22:29:09 -0400 Subject: [PATCH] When setting a scope's argument, convert the list to a sequence if it's not already. --- src/scope.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/scope.h b/src/scope.h index cd6fc15a..e4f3f76c 100644 --- a/src/scope.h +++ b/src/scope.h @@ -141,8 +141,10 @@ public: } void set_args(const value_t& _args) { - assert(_args.is_sequence()); - args = _args; + if (_args.is_sequence()) + args = _args; + else + args = _args.to_sequence(); } value_t& value() { assert(args.is_null() || args.is_sequence());