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 GAA20290; Wed, 13 Aug 2003 06:11:53 +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 GAA16820 for ; Wed, 13 Aug 2003 06:11:52 +0200 (MET DST) Received: from marionberry.cc.columbia.edu (marionberry.cc.columbia.edu [128.59.59.100]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h7D4BpT17600 for ; Wed, 13 Aug 2003 06:11:51 +0200 (MET DST) Received: from tw304h3.cpmc.columbia.edu (tw304h3.cpmc.columbia.edu [156.111.84.180]) (user=ot14 mech=LOGIN bits=0) by marionberry.cc.columbia.edu (8.12.8p1/8.12.8) with ESMTP id h7D4Bn8O016368 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT) for ; Wed, 13 Aug 2003 00:11:50 -0400 (EDT) From: Oleg Trott To: caml-list@inria.fr Subject: [Caml-list] Type Safety and Interruptions Date: Wed, 13 Aug 2003 00:10:40 -0400 User-Agent: KMail/1.5.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200308130010.40500.oleg_trott@columbia.edu> X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.35 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; oleg:01 modifies:01 inconsistent:01 toplevel:01 suppose:03 argument:03 fortran:03 let:04 array:04 functions:05 type:07 function:09 interrupt:09 U7:90 odd:14 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi Are there any guarantees about type safety even when program execution is interrupted? As a simple example, suppose f is a function that modifies its argument (array) frequently, x is some value, and I type in the toplevel: # (* ..... *) # let a = Array.make 100000 x;; # f a;; Interrupted. and interrupt it before f finishes. Is it at all possible for array "a" to be in some odd state when its `value' is inconsistent with its type? What if "f" also contains calls to foreign (C/FORTRAN) functions? Thanks in advance -- Oleg Trott ------------------- 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