Cool test ;-) I get #(false false false true false false false true) in Pharo #10126 (that's an old version).
The validation code is really ugly. It started out simple, but then got incredibly complicated and fragile over time. I already fixed many bugs that appeared in edge cases. Maybe we should instead just try to fix Magritte instead? Lukas On Mon, May 4, 2009 at 3:09 PM, Paolo Bonzini <[email protected]> wrote: > Nicolas Petton wrote: >> Le lundi 04 mai 2009 à 12:50 +0200, Paolo Bonzini a écrit : >>> I think this is because Magritte makes very demanding use of exceptions. >>> It might be that Squeak and GNU Smalltalk behave in a different way. >>> >>> Can you try filing in the attached class and then evaluating: >>> >>> {TestError new resumableTest: #halt outerHandler: #yourself. >>> TestError new resumableTest: #halt outerHandler: #resume. >>> TestError new beResumable; resumableTest: #pass outerHandler: #yourself. >>> TestError new beResumable; resumableTest: #pass outerHandler: #resume. >>> TestError new beResumable; resumableTest: #outer outerHandler: #yourself. >>> TestError new beResumable; resumableTest: #outer outerHandler: #resume. >>> TestError new beResumable; resumableTest: #resumeOuter outerHandler: >>> #yourself. >>> TestError new beResumable; resumableTest: #resumeOuter outerHandler: >>> #resume} >>> >>> under Squeak? >> >> Sure, but what differences between gst and Squeak should I be looking >> for? > > The output for GNU Smalltalk is > > (false false false false false false true true ) > > Magritte uses something that resembles the third or fourth element of > the array, but any difference is sign of a different implementation > and/or a bug in GNU Smalltalk. > > Paolo > > > _______________________________________________ > help-smalltalk mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/help-smalltalk > -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ help-smalltalk mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-smalltalk
