Yes, that's why I asked Eliot about the case of ClassVariables.
mmmm sorry, that was in a private email.
Don't worry, I will take care about testIsClean


On Wed, May 2, 2012 at 4:45 PM, St�phane Ducasse <stephane.ducasse@inria.fr> wrote:


Begin forwarded message:

Subject: Fwd: [squeak-dev] The Trunk: Tests-eem.151.mcz
Date: April 30, 2012 6:48:05 PM GMT+02:00

You are not allowed to post to this mailing list, and your message has
been automatically rejected. �If you think that your messages are
being rejected in error, contact the mailing list owner at
pharo-project-owner@lists.gforge.inria.fr.


From: stephane ducasse <stephane.ducasse@gmail.com>
Subject: Fwd: [squeak-dev] The Trunk: Tests-eem.151.mcz
Date: April 30, 2012 12:42:55 PM GMT+02:00
To: Pharo Development <Pharo-project@lists.gforge.inria.fr>




Begin forwarded message:

From: commits@source.squeak.org
Subject: [squeak-dev] The Trunk: Tests-eem.151.mcz
Date: April 26, 2012 7:02:28 PM GMT+02:00
To: squeak-dev@lists.squeakfoundation.org, packages@lists.squeakfoundation.org
Reply-To: squeak-dev@lists.squeakfoundation.org

Eliot Miranda uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-eem.151.mcz

==================== Summary ====================

Name: Tests-eem.151
Author: eem
Time: 26 April 2012, 12:02:22.807 pm
UUID: d1afe8a4-9721-4e74-a3f3-b2fc1057d51b
Ancestors: Tests-ul.150

Add tests for BlockClosure>isClean

=============== Diff against Tests-ul.150 ===============

Item was added:
+ ----- Method: ClosureTests>>testIsClean (in category 'testing') -----
+ testIsClean
+ | local |
+ local := #testIsClean.
+
+ self assert: [] isClean. "closes over nothing at all"
+ self assert: [:a :b| a < b] isClean. "accesses only arguments"
+ self assert: [:a :b| | s | s := a + b. s even] isClean. "accesses only local variables"
+
+ self deny: [^nil] isClean. "closes over home (^-return)"
+ self deny: [self] isClean. "closes over the receiver"
+ self deny: [collection] isClean. "closes over the receiver (to access the inst var collection)"
+ self deny: [local] isClean. "closes over local variable of outer context"!










--
Mariano
http://marianopeck.wordpress.com