From e919f53c9916af622d1995514c38be68e070ba49 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Mon, 23 Feb 2009 15:04:07 -0400 Subject: Renamed O_COMMA to O_CONS, and changed semantics In the old scheme, nested values would simply flatten and concatenate, so that '((1, 2), 3) = (1, 2, 3)'. Now sublists are preserved, so that sequences may be passed as arguments to functions. --- src/compare.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/compare.cc') diff --git a/src/compare.cc b/src/compare.cc index 015c28bc..79e49461 100644 --- a/src/compare.cc +++ b/src/compare.cc @@ -39,7 +39,7 @@ namespace { void push_sort_value(std::list& sort_values, expr_t::ptr_op_t node, T * scope) { - if (node->kind == expr_t::op_t::O_COMMA) { + if (node->kind == expr_t::op_t::O_CONS) { push_sort_value(sort_values, node->left(), scope); push_sort_value(sort_values, node->right(), scope); } -- cgit v1.2.3