Hello
2011/7/1 Janko Miv��ek <janko.mivsek@eranova.si>
S, Philippe Marschall pi��e:
> first := self askForFirstObject.Asynchronous way would be something like:
> second := self askForSecondObject.
> (first aSelector: second)
> �� ��ifTrue: [ self something ]
> �� ��ifFalse: [ self somethingElse ]
self askForFirstObject
��onAnswerDo: [:first |
�� ��self askForSecondObject
�� �� ��onAnswerDo: [:second |
�� �� �� ��(first aSelector: second)�� �� �� ��]
�� �� �� �� ��ifTrue: [self something]
�� �� �� �� ��ifFalse: [self somethingElse]
�� ��]
This surely looks less nice than your example but it is closer to event
driven nature of browser and web apps. And because such workflow is
actually rare, it is IMHO not worth such a big expense in framework
complexity.
Best regards