There is a bug in TextFragment>>smalltalkOrWordAndWhitespaceFragments. An exception handler block is missing the block argument. I have attached the fixed method. Terry =========================================================== Terry Raymond Crafted Smalltalk 80 Lazywood Ln. Tiverton, RI 02878 (401) 624-4517 [hidden email] =========================================================== _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc TextFragment-smalltalkOrWordAndWhitespaceFragments.st (2K) Download Attachment |
I thought those were optional as per #cull: in the below, [1/0] on: ZeroDivide do: [#zork] => #zork performHandler: aContext | result oldHandler | (handlerContext := aContext) == nil ifTrue: [result := self defaultAction. self isResumable ifTrue: [handlerContext := initialContext. firstUnwindContext := nil. self unwind. thisContext terminateTo: handlerContext. handlerContext := nil]] ifFalse: [oldHandler := handlerContext. result := handlerContext handlerBlock cull: self. handlerContext := oldHandler. "Executing the handler may have set a new handler." self unwind. thisContext terminateTo: handlerContext]. ^result -Boris From: [hidden email] [mailto:[hidden email]] On Behalf Of Terry Raymond There is a bug in TextFragment>>smalltalkOrWordAndWhitespaceFragments. An exception handler block is missing the block argument. I have attached the fixed method. Terry =========================================================== Terry Raymond Crafted Smalltalk 80 Lazywood Ln. Tiverton, RI 02878 (401) 624-4517 [hidden email] =========================================================== _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Boris ARGH!! Thanks, we modified #performHandler: in 7.6 and I missed the change when I brought forward to 7.9. Terry =========================================================== Terry Raymond Crafted Smalltalk 80 Lazywood Ln. Tiverton, RI 02878 (401) 624-4517 [hidden email] =========================================================== From: Boris Popov, DeepCove Labs [mailto:[hidden email]] I thought those were optional as per #cull: in the below, [1/0] on: ZeroDivide do: [#zork] => #zork performHandler: aContext | result oldHandler | (handlerContext := aContext) == nil ifTrue: [result := self defaultAction. self isResumable ifTrue: [handlerContext := initialContext. firstUnwindContext := nil. self unwind. thisContext terminateTo: handlerContext. handlerContext := nil]] ifFalse: [oldHandler := handlerContext. result := handlerContext handlerBlock cull: self. handlerContext := oldHandler. "Executing the handler may have set a new handler." self unwind. thisContext terminateTo: handlerContext]. ^result -Boris From: [hidden email] [hidden email] On Behalf Of Terry Raymond There is a bug in TextFragment>>smalltalkOrWordAndWhitespaceFragments. An exception handler block is missing the block argument. I have attached the fixed method. Terry =========================================================== Terry Raymond Crafted Smalltalk 80 Lazywood Ln. Tiverton, RI 02878 (401) 624-4517 [hidden email] =========================================================== _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |