Migrate protoconf to new Moore
- May 16, 2019
-
-
Rosen Matev authored
-
Results in clearer semantics and a cleaner implementation that doesn't leave old scopes lying around, at the expense of a more verbose API.
-
Previously, we maintained an actual stack of scopes that were entered when an @configurable function was called and when a namespace was created. Now, we record every stack frame (from the Python interpreter) in which bind is called. When a @configurable is called, we search the interpreter whole stack top-to-bottom. If we find a frame matches is in our list of frames, we retrieve the parameter values defined so far in that frame.
-
-
-
-
-
-
-
-
-
-
-