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 LAA02288; Thu, 26 Aug 2004 11:03:36 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA02049 for ; Thu, 26 Aug 2004 11:03:35 +0200 (MET DST) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i7Q93ZTi022388 for ; Thu, 26 Aug 2004 11:03:35 +0200 Received: from ibm3.cicrp.jussieu.fr (ibm3.cicrp.jussieu.fr [134.157.15.3]) by shiva.jussieu.fr (8.12.11/jtpda-5.4) with ESMTP id i7Q93Ouw026214 for ; Thu, 26 Aug 2004 11:03:24 +0200 (CEST) X-Ids: 167 Received: from ibm1.cicrp.jussieu.fr (ibm1.cicrp.jussieu.fr [134.157.15.1]) by ibm3.cicrp.jussieu.fr (8.8.8/jtpda/mob-V8) with ESMTP id LAA08392 for ; Thu, 26 Aug 2004 11:01:26 +0200 Received: from localhost (fernande@localhost) by ibm1.cicrp.jussieu.fr (8.8.8/jtpda/mob-v8) with ESMTP id LAA643294 for ; Thu, 26 Aug 2004 11:01:14 +0200 X-Authentication-Warning: ibm1.cicrp.jussieu.fr: fernande owned process doing -bs Date: Thu, 26 Aug 2004 11:01:14 +0200 (DST) From: Diego Olivier Fernandez Pons X-X-Sender: fernande@ibm1 To: caml-list@inria.fr Subject: Re: [Caml-list] Side effect in non-commutative context In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Miltered: at concorde with ID 412DA767.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at shiva.jussieu.fr with ID 412DA75C.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Antivirus: scanned by sophie at shiva.jussieu.fr X-Loop: caml-list@inria.fr X-Spam: no; 0.00; pons:01 pons:01 etu:99 caml-list:01 pessaux:01 type-based:01 inferred:01 pessaux:01 leroy's:01 compiler:01 fernandez:01 fernandez:01 caml:01 caml:01 rec:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Bonjour, I have been said privately that detecting side-effects may be quite difficult. Quid about the work done by Fran=E7ois Pessaux and Xavier Leroy on type-based analysis of uncaught exceptions (1998) ? Is it planned to be added to the Caml compiler (I am of course directly interested because heavy user of exceptions but I don't know how important this is for typical Caml programs like symbolic computation, etc.) An other point is that I meant of course compilation-time warnings. let rec map f =3D function | [] -> [] | head :: tail -> f head :: map f tail Once a function like [map] is compiled there is no way to know if it intented to be used in a commutative context or not. What I had in mind was just propagating a "with-side-effects" tag in the inferred type (that is more or less the way exceptions are handled in Pessaux and Leroy's work, isn't it ?) Diego Olivier ------------------- 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