When setting a scope's argument, convert the list to a sequence if it's not

already.
This commit is contained in:
John Wiegley 2009-01-19 22:29:09 -04:00
parent 7ffe0e1539
commit bcfd6d1db9

View file

@ -141,8 +141,10 @@ public:
} }
void set_args(const value_t& _args) { void set_args(const value_t& _args) {
assert(_args.is_sequence()); if (_args.is_sequence())
args = _args; args = _args;
else
args = _args.to_sequence();
} }
value_t& value() { value_t& value() {
assert(args.is_null() || args.is_sequence()); assert(args.is_null() || args.is_sequence());