User loginNavigation 
Typed callcc in a stackbased languageI have been playing with the idea of adding a callwithcurrentcontinuation primitive ( callcc : ('A ('A ('A > 'B) > 'B) > 'B) The formal semantics would be: [$A [$B] callcc $C] == [$A [$C] $B] An example usage would be: >> define do_twice { dup [apply] dip apply } >> define test { 1 [do_twice] callcc inc } >> test stack: 3 My questions are: am I doing this right? Does the type look correct? Is it a good idea to add continuations to Cat? Thanks in advance! By cdiggins at 20070604 21:24  LtU Forum  previous forum topic  next forum topic  other blogs  7644 reads

Browse archivesActive forum topics 
Recent comments
2 hours 41 min ago
5 hours 25 min ago
5 hours 44 min ago
5 hours 48 min ago
11 hours 37 min ago
2 days 52 min ago
2 days 5 hours ago
3 days 5 hours ago
3 days 7 hours ago
3 days 13 hours ago