Make sure to invalidate the cache when a new function name is added

This commit is contained in:
Jason Turner 2009-08-30 01:06:21 +00:00
parent 096c8aab50
commit 94e4b671f3

View File

@ -170,6 +170,7 @@ namespace chaiscript
bool add(const Proxy_Function &f, const std::string &name)
{
validate_object_name(name);
m_scopes->first.erase(name);
return add_function(f, name);
}