May 18, 2018
8:39 a.m.
Hi, the #binding: API until now did not allow to shadow globals. But there is actually no reason to forbid that (and it can actually be interesting, e.g. to compile code where one class ref is switched to another). The Pull Request does: - add comment to OCExtraBindingScope - categorize tests - change #lookupVar: to allow shadowing of Globals. - change test to reflect the new behaviour This means you can do: result := Smalltalk compiler bindings: {(#Object -> Point)} asDictionary; evaluate: 'Object new'. https://github.com/pharo-project/pharo/pull/1379 Marcus