From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id B478ABC84 for ; Thu, 10 Mar 2005 15:22:58 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j2AEMwkG005578 for ; Thu, 10 Mar 2005 15:22:58 +0100 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 PAA21070 for ; Thu, 10 Mar 2005 15:22:57 +0100 (MET) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j2AEMulW005570 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Thu, 10 Mar 2005 15:22:57 +0100 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1D9OWT-0000d0-Nz for caml-list@inria.fr; Thu, 10 Mar 2005 15:20:21 +0100 Received: from hse-quebeccity-ppp3500928.sympatico.ca ([65.92.241.52]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Mar 2005 15:20:21 +0100 Received: from monnier by hse-quebeccity-ppp3500928.sympatico.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 10 Mar 2005 15:20:21 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Stefan Monnier Subject: Re: exception safety / RAII ? Date: Thu, 10 Mar 2005 09:20:30 -0500 Message-ID: <877jkf7fge.fsf-monnier+gmane.comp.lang.caml.inria@gnu.org> References: <293072a520e3724a0497e6456a8675be@mac.com> <877e9a1705030710476502ad31@mail.gmail.com> <1110281592.680.102.camel@localhost> <200503081828.44579.jon@jdh30.plus.com> <87u0nk98df.fsf-monnier+gmane.comp.lang.caml.inria@gnu.org> <87oeds4fla.fsf@qrnik.zagroda> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: hse-quebeccity-ppp3500928.sympatico.ca User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:cMIwgnpmBufudEYei8ab7QnI/hM= Sender: news X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-MailScanner-From: gclci-caml-list@m.gmane.org X-MailScanner-To: caml-list@inria.fr X-Miltered: at concorde with ID 42305842.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 42305840.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; umontreal:01 finalizers:01 freeing:98 exception:01 imply:03 memory:08 useful:08 doesn't:12 should:13 convenient:14 U4:83 stefan:18 stefan:18 files:18 specifically:21 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.2 X-Spam-Level: > The fact that GC is useful for freeing memory doesn't imply that we > should have no convenient way for closing files. Agreed, I was only talking specifically about misuse of finalizers. Stefan