Hi Joel
Nested environments are appropriate for nested parsing and possibly
evaluation of a complex expression. My recommendations were for parsing.
It seems that you have some bigger application that provides context
across OCL evaluations.
You have described a push-model whereby the application continually
pushes its context to OCL.
You might find it worthwhile to create a derived EcoreEnvironment
that reimplements at least lookupLocal so that you can reuse the
environment and just pull your application resolutions when you want them.
Regards
Ed Willink