On 17.06.2009, at 21:02, Gabriel Cotelli wrote:
This is the list of methods missing in BlockClosure but covered by the BlockContextTest: ⢠copyStack ⢠bottomContext ⢠findContextSuchThat: ⢠tempNamed: ⢠tempNamed:put: I don't known if has sense to implement that...
No, I don't think so. These are all related to the stack (thisContext), which used to be the same as the Block: before closures, this was true: (block := [thisContext]) value == block this means, the block object was identical to the context of the block. This is not the case anymore. The expression is false, and the context of the block [thisContext] value class is now a methodcontext, not a blockcontext, nor a bockclosure. The object representing blocks is not a context anymore, but a container that holds the values of the state that is local to the block. Marcus -- Marcus Denker - http://marcusdenker.de PLEIAD Lab - Computer Science Department (DCC) - University of Chile