Paste: continuation ghapla

Author: missingfaktor
Mode: factor
Date: Tue, 31 Jul 2012 21:02:46
Plain Text |
USING: locals multiline ;

/* This should have caused the statement to print indefinitely, but instead it freezes the listener.

http://matt.might.net/articles/programming-with-continuations--exceptions-backtracking-search-threads-generators-coroutines/ */

[let f :> start!
  start not [
    [ start! ] callcc1 
  ] when
  "going to invoke" .
  start continue
]

New Annotation

Summary:
Author:
Mode:
Body: