summaryrefslogtreecommitdiff
path: root/src/compare.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-23 15:04:07 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-23 15:04:07 -0400
commite919f53c9916af622d1995514c38be68e070ba49 (patch)
treeb70f68910a0a7bbfc114fd901dd02d21c2345e05 /src/compare.cc
parent9a44b8a547c44111ba467e2fc37a8c43dc205501 (diff)
downloadfork-ledger-e919f53c9916af622d1995514c38be68e070ba49.tar.gz
fork-ledger-e919f53c9916af622d1995514c38be68e070ba49.tar.bz2
fork-ledger-e919f53c9916af622d1995514c38be68e070ba49.zip
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.
Diffstat (limited to 'src/compare.cc')
-rw-r--r--src/compare.cc2
1 files changed, 1 insertions, 1 deletions
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_value_t>& 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);
}