O_DEFINE operator should always return NULL_VALUE

This commit is contained in:
John Wiegley 2011-07-17 15:28:02 -05:00
parent 51587d351f
commit 976ba4907d

View file

@ -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) {