static environment update(environment const & env, scope_mng_ext const & ext) { return env.update(g_ext->m_ext_id, std::make_shared<scope_mng_ext>(ext)); }