diff --git a/include/chaiscript/dispatchkit/dispatchkit.hpp b/include/chaiscript/dispatchkit/dispatchkit.hpp index 62f58fd..b3db73c 100644 --- a/include/chaiscript/dispatchkit/dispatchkit.hpp +++ b/include/chaiscript/dispatchkit/dispatchkit.hpp @@ -415,7 +415,6 @@ namespace chaiscript * Set the value of an object, by name. If the object * is not available in the current scope it is created */ - /* void add(const Boxed_Value &obj, const std::string &name) { validate_object_name(name); @@ -433,7 +432,7 @@ namespace chaiscript add_object(name, obj); } - */ + /** * Adds a named object to the current scope diff --git a/unittests/temporary_lifetime.chai b/unittests/temporary_lifetime.chai new file mode 100644 index 0000000..ab6933e --- /dev/null +++ b/unittests/temporary_lifetime.chai @@ -0,0 +1,3 @@ +for_each(range([1..10]), fun(x) {print(x);} ); + +assert_true(true);