continuations: make with-return use with-variable instead of with-scope.

db4
John Benediktsson 2015-06-15 09:11:35 -07:00
parent d4e3adca57
commit 01e210346e
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ PRIVATE>
SYMBOL: return-continuation
: with-return ( quot -- )
[ [ return-continuation set ] prepose callcc0 ] with-scope ; inline
[ return-continuation ] dip [ with-variable ] 2curry callcc0 ; inline
: return ( -- * )
return-continuation get continue ;