Browse thread
[Caml-list] Python's yield, Lisp's call-cc or C's setjmp/longjmp in OCaml
-
Nuutti Kotivuori
- Oleg Trott
-
Ville-Pertti Keinonen
-
Kenneth Knowles
-
Richard Jones
- Ville-Pertti Keinonen
-
Richard Jones
-
Kenneth Knowles
- Brian Hurt
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2003-12-16 (18:36) |
From: | Ville-Pertti Keinonen <will@e...> |
Subject: | Re: [Caml-list] Python's yield, Lisp's call-cc or C's setjmp/longjmp in OCaml |
On Dec 16, 2003, at 6:45 PM, Richard Jones wrote: > Perhaps I'm being stupid here, but isn't it possible to get a similar > effect (some would say a more comprehensible effect) by writing your > own OCaml bindings for the makecontext/setcontext/getcontext family of > functions? They are unsafe and rather limited. If you'd be willing to go to the trouble to make them safe, you might as well implement continuations which are more capable anyhow. > Granted this would not be portable beyond Linux and Solaris, but who > cares too much about that? Lots of people. ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners