From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA04202; Thu, 30 May 2002 18:06:43 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA04233 for ; Thu, 30 May 2002 18:06:42 +0200 (MET DST) Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g4UG6gT05454 for ; Thu, 30 May 2002 18:06:42 +0200 (MET DST) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id g4UG6fp68849 ; Thu, 30 May 2002 18:06:41 +0200 (CEST) Received: from localhost (frisch@localhost) by clipper.ens.fr (8.12.3/jb-1.1) id g4UG6e6Q027770 ; Thu, 30 May 2002 18:06:40 +0200 (MET DST) Date: Thu, 30 May 2002 18:06:40 +0200 (MET DST) From: Alain Frisch To: Xingyuan Zhang cc: caml-list@inria.fr Subject: Re: [Caml-list] Question on interp.c In-Reply-To: <3CF610BC.640425A1@durham.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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