Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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)
- STOP


-- 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