diff options
author | John Wiegley <johnw@newartisans.com> | 2011-07-17 15:28:02 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2011-07-17 15:28:02 -0500 |
commit | 976ba4907d6d85073bb57012eb337a3373b2e790 (patch) | |
tree | 4d740f64f04e778cdf217c318d8c5d38d8401122 /src/op.cc | |
parent | 51587d351f984661e801e35f7db4911cc22b642b (diff) | |
download | fork-ledger-976ba4907d6d85073bb57012eb337a3373b2e790.tar.gz fork-ledger-976ba4907d6d85073bb57012eb337a3373b2e790.tar.bz2 fork-ledger-976ba4907d6d85073bb57012eb337a3373b2e790.zip |
O_DEFINE operator should always return NULL_VALUE
Diffstat (limited to 'src/op.cc')
-rw-r--r-- | src/op.cc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) { |