diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-24 20:37:08 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-24 20:37:12 -0400 |
commit | 011bf030a27f75c8b127b9b044a6580fc124a986 (patch) | |
tree | c90db8fe268a97a7eb9a05514a31f931b84ffd4b /tools | |
parent | 35da9ad4665416fe8b016f3fd7cad4975fc3e090 (diff) | |
download | fork-ledger-011bf030a27f75c8b127b9b044a6580fc124a986.tar.gz fork-ledger-011bf030a27f75c8b127b9b044a6580fc124a986.tar.bz2 fork-ledger-011bf030a27f75c8b127b9b044a6580fc124a986.zip |
Generalized the semantics of FOO.BAR in valexprs
Previously, FOO was evaluated to return a scope, and BAR was an
identifier looked up in that scope. However, this prevented scope-local
functions from being called (since that is a CALL, not a plain IDENT).
Now the meaning of the "." operator is that it evaluates the left
operand in a scope type context, pushes that scope as the current object
context, and then evaluates BAR in that context.
Thus the bare word "amount" in an account context calls the same
function that "account.amount" would if evaluated in a posting context.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions