[squeak-dev] The Trunk: Environments-bf.12.mcz

Frank Shearar frank.shearar at gmail.com
Fri Jan 11 11:06:15 UTC 2013


On 10 January 2013 00:16,  <commits at source.squeak.org> wrote:
> Bert Freudenberg uploaded a new version of Environments to project The Trunk:
> http://source.squeak.org/trunk/Environments-bf.12.mcz
>
> ==================== Summary ====================
>
> Name: Environments-bf.12
> Author: bf
> Time: 9 January 2013, 4:16:32.604 pm
> UUID: 6c062187-89cf-4350-b0f3-28c0ad57fc37
> Ancestors: Environments-fbs.11
>
> Environment>>bindingOf: must not answer undeclared bindings. E.g., in my case a binding in undeclared shadowed a perfectly fine class variable higher up in the class hierarchy.
>
> =============== Diff against Environments-fbs.11 ===============
>
> Item was changed:
>   ----- Method: Environment>>bindingOf:ifAbsent: (in category 'binding') -----
>   bindingOf: aSymbol ifAbsent: aBlock
>         lookup do:
>                 [:dict |
>                 (dict includesKey: aSymbol) ifTrue:
>                         [^ dict associationAt: aSymbol]].
> +       ^ aBlock value!
> -       ^ undeclared associationAt: aSymbol ifAbsent: aBlock!

I'm a bit slow; I'd love to see a pair of tests for this!

frank


More information about the Squeak-dev mailing list