Pharo の継続機能を次のコード (プレイグラウンドで) でテストしようとしています:
| cont f |
f:=[
|i|
i:=0.
Continuation currentDo: [ :cc | cont:=cc ].
i:=i+1.
].
f value. "1"
cont. "a Continuation"
ただし、に保存されている継続を呼び出すとすぐに(でcont
置き換えます)、画像がすぐにフリーズし、コントロールを取り戻すために を押す必要があります。cont.
cont value.
atl+.
VM バージョン:VM: NBCoInterpreter NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 May 15 2014 NBCogit NativeBoost-CogPlugin-GuillermoPolito.19 uuid: acc98e51-2fba-4841-a965-2975997bba66 May 15 2014 https://github.com/pharo-project/pharo-vm.git Commit: ed4a4f59208968a21d82fd2406f75c2c4de558b2 Date: 2014-05-15 18:23:04 +0200 By: Esteban Lorenzano <estebanlm@gmail.com> Jenkins build #14826
ファロのバージョン:[version] 4.0 #40614
ありがとう。
編集:私は愚かで、これをよく考えていませんでした...