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] Question on interp.c
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-05-30 (16:06)
From: Alain Frisch <frisch@c...>
Subject: Re: [Caml-list] Question on interp.c
On Thu, 30 May 2002, Xingyuan Zhang wrote:

> I am now reading the source of interp.c. I cannot see how the while (1)
> { ...} loop in interprete is terminated
> when the program reaches its end.

By return instructions in the handlers of the two following Caml abstract
machine instructions:
- RAISE (when the exception is not catched by an enclosing Caml handler)

-- Alain

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