Status: FixToInclude
Owner:
[hidden email]
Labels: Type-Bug Milestone-2.0
New issue 6047 by
[hidden email]: testisclean
http://code.google.com/p/pharo/issues/detail?id=6047testIsClean
| 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"
in pharoInbox CompilerTests-sd.109
Stef
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker