Oh, sure much more expressive! I learned some of those low level snippets 25 years ago and seems to have an inability to forget them ;) 2013/5/1 Camillo Bruni <camillobruni@gmail.com>
On 2013-05-01, at 19:01, Nicolas Cellier < nicolas.cellier.aka.nice@gmail.com> wrote:
Yes, great superpowers! A bit more lightweight and efficient than abort(); gdb myApp core
A small reminder for myself:
[ (Delay forSeconds: 2 hours asSeconds) wait. WorldState addDeferredUIMessage: [ UIManager default inform: 'You''re Smalltalking too much There are other nice things worth in life' ]. ] fork
in Pharo 3.0 you can write that a tad more elegant:
[ WorldState addDeferredUIMessage: [ UIManager default inform: 'You''re Smalltalking too much There are other nice things worth in life' ]. ] valueAfterWaiting: 2 hours
and in general for waiting on delays you now can do:
2 hours wait
that hides away quite some details :)