From 976ba4907d6d85073bb57012eb337a3373b2e790 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 17 Jul 2011 15:28:02 -0500 Subject: O_DEFINE operator should always return NULL_VALUE --- src/op.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/op.cc') diff --git a/src/op.cc b/src/op.cc index f4bc28fc..3876784d 100644 --- a/src/op.cc +++ b/src/op.cc @@ -164,6 +164,11 @@ value_t expr_t::op_t::calc(scope_t& scope, ptr_op_t * locus, const int depth) result = as_value(); break; + case O_DEFINE: + //result = left()->calc(scope, locus, depth + 1); + result = NULL_VALUE; + break; + case IDENT: { ptr_op_t definition = left(); if (! definition) { -- cgit v1.2.3