coroutines: 4-space style.

db4
John Benediktsson 2012-09-22 12:57:46 -07:00
parent fa310fe054
commit b9b5c6e927
1 changed files with 27 additions and 26 deletions

View File

@ -11,7 +11,8 @@ TUPLE: coroutine resumecc exitcc originalcc ;
: cocreate ( quot -- co )
coroutine new
dup current-coro associate
[ swapd , , \ with-variables ,
[
swapd , , \ with-variables ,
"Coroutine has terminated illegally." , \ throw ,
] [ ] make
[ >>resumecc ] [ >>originalcc ] bi ;