diff --git a/boxedcpp/boxedcpp.hpp b/boxedcpp/boxedcpp.hpp index 03e3b15..e742ff8 100644 --- a/boxedcpp/boxedcpp.hpp +++ b/boxedcpp/boxedcpp.hpp @@ -22,7 +22,7 @@ class BoxedCPP_System typedef std::multimap > Function_Map; typedef std::map Type_Name_Map; typedef std::map Scope; - + typedef std::deque Stack; BoxedCPP_System() { @@ -79,6 +79,18 @@ class BoxedCPP_System } } + Stack get_stack() + { + return m_scopes; + } + + Stack set_stack(Stack s) + { + swap(s, m_scopes); + return s; + } + + Boxed_Value get_object(const std::string &name) const { for (int i = m_scopes.size()-1; i >= 0; --i)