From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.devel Subject: Re: array handles and non-local exits Date: Tue, 30 Jun 2009 23:59:19 +0100 Message-ID: <87tz1xjpko.fsf@arudy.ossau.uklinux.net> References: <49dd78620809151317i3421081ey3337d678477046ab@mail.gmail.com> <87ljxsv80p.fsf@gnu.org> <49dd78620809171232n745ac8ecgd2c3936989ce723b@mail.gmail.com> <87myi5g98g.fsf@gnu.org> <49dd78620809180217p21c36802me305270af14a6f95@mail.gmail.com> <87myi536we.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1246402832 13970 80.91.229.12 (30 Jun 2009 23:00:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Jun 2009 23:00:32 +0000 (UTC) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Jul 01 01:00:25 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MLmIa-0000Sv-64 for guile-devel@m.gmane.org; Wed, 01 Jul 2009 00:59:36 +0200 Original-Received: from localhost ([127.0.0.1]:54053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLmIZ-0002qe-Pv for guile-devel@m.gmane.org; Tue, 30 Jun 2009 18:59:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MLmIS-0002nS-Cz for guile-devel@gnu.org; Tue, 30 Jun 2009 18:59:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MLmIN-0002j4-DQ for guile-devel@gnu.org; Tue, 30 Jun 2009 18:59:27 -0400 Original-Received: from [199.232.76.173] (port=32882 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MLmIN-0002iw-9W for guile-devel@gnu.org; Tue, 30 Jun 2009 18:59:23 -0400 Original-Received: from mail3.uklinux.net ([80.84.72.33]:46066) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MLmIK-0008Vm-Pa; Tue, 30 Jun 2009 18:59:21 -0400 Original-Received: from arudy (host86-152-99-133.range86-152.btcentralplus.com [86.152.99.133]) by mail3.uklinux.net (Postfix) with ESMTP id E1BF71F9D27; Tue, 30 Jun 2009 23:59:19 +0100 (BST) Original-Received: from arudy.ossau.uklinux.net (arudy [127.0.0.1]) by arudy (Postfix) with ESMTP id 37ED43801F; Tue, 30 Jun 2009 23:59:19 +0100 (BST) In-Reply-To: <87myi536we.fsf@gnu.org> ("Ludovic =?iso-8859-1?Q?Court=E8s?= =?iso-8859-1?Q?=22's?= message of "Thu\, 18 Sep 2008 15\:44\:49 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:8809 Archived-At: ludo@gnu.org (Ludovic Court=E8s) writes: > Not quite. If get/release are left as is (i.e., they do not establish a > dynwind context), I would write something along the lines of: > > You must take care to always unreserve an array after reserving it, > also in the presence of non-local exits. If a non-local exit can > happen between these two calls, you should install a dynwind context > that releases the array when it is left (see Dynamic Wind). > > In addition, array reserving and unreserving must be properly > paired. For instance, when reserving two or more arrays in a certain > order, you need to unreserve them in the opposite order. > > I would simply remove the following paragraph: > > These calls and other pairs of calls that establish dynwind contexts > need to be properly nested. If you begin a context prior to reserving > an array, you need to unreserve the array before ending the context. > Likewise, when reserving two or more arrays in a certain order, you > need to unreserve them in the opposite order. > > What do you think? Another loose end... I agree and have committed your suggested text to branch_release-1-8 and master. Regards, Neil