From 5a194cbdf4533b337776959fb2a2bb5ebccd35db Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 24 Feb 2009 22:10:41 -0400 Subject: Allow value expressions access to session options --- src/session.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/session.cc b/src/session.cc index 9d1a23f4..3c6b6ddb 100644 --- a/src/session.cc +++ b/src/session.cc @@ -258,6 +258,10 @@ expr_t::ptr_op_t session_t::lookup(const string& name) break; } + // Check if they are trying to access an option's setting or value. + if (option_t * handler = lookup_option(p)) + return MAKE_OPT_FUNCTOR(session_t, handler); + return symbol_scope_t::lookup(name); } -- cgit v1.2.3