stéphane ducasse schrieb:
> #(1 2 3 4 5 0)
> collect: [:each |
> [10 / each ] on: ZeroDivide do: [:ex | ex retryUsing: 10]
> ]
the following lets the VM exit without an error message on Windows XP:
[10 / 0 ] on: ZeroDivide do: [:ex | ex retryUsing: 0]
the following statements do NOT make the VM exit:
[10 / 0 ] on: ZeroDivide do: [:ex | ex retryUsing: [0] ]
[10 / 0 ] on: ZeroDivide do: [:ex | ex retryUsing: 0@0 ]
also note that #retryUsing: expects a block argument
_______________________________________________
vwnc mailing list
vwnc@...
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc