[squeak-dev] The Trunk: Compiler-cwp.97.mcz

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Mon Nov 16 17:03:04 UTC 2009


Easy, see Kernel-nice.300 (Eliot already suggested the solution a few
week sooner)

2009/11/16  <commits at source.squeak.org>:
> Colin Putney uploaded a new version of Compiler to project The Trunk:
> http://source.squeak.org/trunk/Compiler-cwp.97.mcz
>
> ==================== Summary ====================
>
> Name: Compiler-cwp.97
> Author: cwp
> Time: 16 November 2009, 8:35:05 am
> UUID: 815de973-26b4-4f93-b1ee-4905e56fa4b3
> Ancestors: Compiler-nice.96
>
> Added a test that demonstrates a bug in block copying.
>
> If a block containing a return is copied, it will raise BlockCannotReturn when it's evaluated, even if the home context is still on the stack.
>
> http://bugs.squeak.org/view.php?id=7414
>
> =============== Diff against Compiler-nice.96 ===============
>
> Item was added:
> + ----- Method: ClosureTests>>evaluateCopyOf: (in category 'utilities') -----
> + evaluateCopyOf: aBlock
> +       aBlock copy value!
>
> Item was added:
> + ----- Method: ClosureTests>>testCopyNonLocalReturn (in category 'testing') -----
> + testCopyNonLocalReturn
> +       self
> +               shouldnt: [self methodWithNonLocalReturn]
> +               raise: Error!
>
> Item was added:
> + ----- Method: ClosureTests>>methodWithNonLocalReturn (in category 'utilities') -----
> + methodWithNonLocalReturn
> +       self evaluateCopyOf: [^ self].
> +       self signalFailure: 'Should never reach here'!
>
>
>



More information about the Squeak-dev mailing list