English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Python's yield, Lisp's call-cc or C's setjmp/longjmp in OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ 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