From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Noah Lavine Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Date: Wed, 27 Oct 2010 14:30:01 -0400 Message-ID: References: <87d3qvo5i4.fsf@ossau.uklinux.net> 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: dough.gmane.org 1288204258 18700 80.91.229.12 (27 Oct 2010 18:30:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Oct 2010 18:30:58 +0000 (UTC) Cc: guile-devel@gnu.org To: Neil Jerram Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Wed Oct 27 20:30:57 2010 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.69) (envelope-from ) id 1PBAlw-0001sa-Jg for guile-devel@m.gmane.org; Wed, 27 Oct 2010 20:30:52 +0200 Original-Received: from localhost ([127.0.0.1]:60413 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBAlv-00030N-UL for guile-devel@m.gmane.org; Wed, 27 Oct 2010 14:30:51 -0400 Original-Received: from [140.186.70.92] (port=46945 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBAlA-0002lQ-Sj for guile-devel@gnu.org; Wed, 27 Oct 2010 14:30:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBAl8-0004uw-D2 for guile-devel@gnu.org; Wed, 27 Oct 2010 14:30:04 -0400 Original-Received: from mail-ww0-f49.google.com ([74.125.82.49]:34590) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PBAl8-0004tK-3H for guile-devel@gnu.org; Wed, 27 Oct 2010 14:30:02 -0400 Original-Received: by wwb17 with SMTP id 17so396284wwb.30 for ; Wed, 27 Oct 2010 11:30:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=f9Jkl5u+423Je2GwDs4Yi2g81VYkGczwGQY5MQS9Xvg=; b=qoHdML/U/PRtR20SSR8P1KxqYIHFIlHlWbBkpVDPUlwLkrpxScglItZGwE4CnWbI8G mliAJHM30Fpx/Tenok5hRxIJRJ33FIWJoe+eJmtvQ/ByHykQoUbBK6A5DqOW2CDL13GH L868LKvozjPGDZ2Gtdu3i9UY53z1JY4ceKnus= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=GMQ76f8iQlt4x+JOtWn2nUg2wF7D97DSBwhy654qJTRS9nBerfAr+KE7Nbc7CFP910 TrKdGXJ1hD8lGwFCK6FZwSUwYes8xtn+iDaGbSi2u2JXtvGAoLLvbuijWUtXRgpET3gq 3f9vqaJHbVXoZX7Cr7E8p3Ji0GfDLkgGNKGBI= Original-Received: by 10.216.7.194 with SMTP id 44mr9538244wep.7.1288204201149; Wed, 27 Oct 2010 11:30:01 -0700 (PDT) Original-Received: by 10.216.237.34 with HTTP; Wed, 27 Oct 2010 11:30:01 -0700 (PDT) In-Reply-To: <87d3qvo5i4.fsf@ossau.uklinux.net> X-Google-Sender-Auth: aJoaPpw26V6JjuPBrRpjX2C2TXM X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:11075 Archived-At: *eoi* is what the LALR parser generator would need as input, so it seems more consistent with the Guile API to make it return '*eoi*. Noah On Wed, Oct 27, 2010 at 2:27 PM, Neil Jerram wrote= : > I have a program that calls (read-elisp) in a loop, to read in a BBDB > file. =A0When it gets to the end of the file, the next (read-elisp) throw= s > an error (wrong type arg, pair expected), and the attached patch makes > it return '*eoi* instead. > > Is that correct? =A0Is *eoi* better than # here? =A0Or should I just > catch the exception instead? > > =A0 =A0 =A0Neil > >