Hang up your image using primitive 118

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Hang up your image using primitive 118

Christoph Thiede

ar := #(118 nil) copy.
ar at: 2 put: ar.
2 tryPrimitive: 118 withArgs: ar. "Crash!"

I'm not sure whether I should be glad that 118 has no arbitrary limitations on recursion, or whether I should be sad because the image crashes. I think I'll decide for the first option. :-)


BTW: The example also infinite-loops as expected in the simulator. Nice work!


Best,

Christoph



Carpe Squeak!