caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Question on interp.c
@ 2002-05-30 11:45 Xingyuan Zhang
  2002-05-30 16:06 ` Alain Frisch
  0 siblings, 1 reply; 2+ messages in thread
From: Xingyuan Zhang @ 2002-05-30 11:45 UTC (permalink / raw)
  To: caml-list

Dear All,

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.

Could you provide any help?

Thanks!

Xingyuan Zhang

--
Dr. Xingyuan
Zhang
Tel   : +44 (0)191-3743906
Department of Computer Science, University of Durham,       Email :
Xingyuan.Zhang@durham.ac.uk
Science Labs, South Road, Durham DH1 3LE U.K.
-------------------
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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Caml-list] Question on interp.c
  2002-05-30 11:45 [Caml-list] Question on interp.c Xingyuan Zhang
@ 2002-05-30 16:06 ` Alain Frisch
  0 siblings, 0 replies; 2+ messages in thread
From: Alain Frisch @ 2002-05-30 16:06 UTC (permalink / raw)
  To: Xingyuan Zhang; +Cc: caml-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-30 16:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-05-30 11:45 [Caml-list] Question on interp.c Xingyuan Zhang
2002-05-30 16:06 ` Alain Frisch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).