summaryrefslogtreecommitdiff
path: root/pyinterp.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-07-29 18:57:02 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-07-29 18:57:02 -0400
commit200d919fe7c8bcf021011c16fb6ec50821444d5e (patch)
treec3da877b2968bf9ee697727c19bec5fe16c59144 /pyinterp.h
parentd073a7e8a599def9c6dae0f98903d9b59766e9fc (diff)
downloadledger-200d919fe7c8bcf021011c16fb6ec50821444d5e.tar.gz
ledger-200d919fe7c8bcf021011c16fb6ec50821444d5e.tar.bz2
ledger-200d919fe7c8bcf021011c16fb6ec50821444d5e.zip
Changed the way scopes are structured for an upcoming design change.
Diffstat (limited to 'pyinterp.h')
-rw-r--r--pyinterp.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/pyinterp.h b/pyinterp.h
index 4d3ac0c8..5486eea5 100644
--- a/pyinterp.h
+++ b/pyinterp.h
@@ -39,8 +39,7 @@
namespace ledger {
-class python_interpreter_t
- : public noncopyable, public expr_t::symbol_scope_t
+class python_interpreter_t : public noncopyable, public scope_t
{
boost::python::handle<> mmodule;
@@ -95,8 +94,7 @@ public:
virtual expr_t::ptr_op_t lookup(const string& name) {
if (boost::python::object func = eval(name))
return WRAP_FUNCTOR(functor_t(name, func));
- else
- return expr_t::symbol_scope_t::lookup(name);
+ return expr_t::ptr_op_t();
}
class lambda_t : public functor_t {