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: Needed: per-port reader options Date: Tue, 16 Oct 2012 17:57:39 -0400 Message-ID: References: <87sj9ixl1j.fsf@tines.lan> <87ehkyza6v.fsf@gnu.org> <87k3uqtbf0.fsf@tines.lan> <87obk22j2i.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1350424665 14160 80.91.229.3 (16 Oct 2012 21:57:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Oct 2012 21:57:45 +0000 (UTC) Cc: Mark H Weaver , guile-devel@gnu.org To: =?ISO-8859-1?Q?Ludovic_Court=E8s?= Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Oct 16 23:57:52 2012 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TOF94-00084H-RZ for guile-devel@m.gmane.org; Tue, 16 Oct 2012 23:57:50 +0200 Original-Received: from localhost ([::1]:48321 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOF8y-0006YQ-0N for guile-devel@m.gmane.org; Tue, 16 Oct 2012 17:57:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOF8v-0006YJ-BN for guile-devel@gnu.org; Tue, 16 Oct 2012 17:57:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TOF8u-0007Tw-8P for guile-devel@gnu.org; Tue, 16 Oct 2012 17:57:41 -0400 Original-Received: from mail-ob0-f169.google.com ([209.85.214.169]:55802) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TOF8u-0007Ts-3K; Tue, 16 Oct 2012 17:57:40 -0400 Original-Received: by mail-ob0-f169.google.com with SMTP id va7so7871427obc.0 for ; Tue, 16 Oct 2012 14:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=dhkWB2PsrQi4+iwefxAbfBmLO0zrH40Qsm8bLQ+jc9o=; b=QNzUrWArNg3fnMjRXie/CKxu02DFdniBa8tVqUVaDZ1yGdXzZSttpxbiNpwZC2Qw6f y8j1Izn70CqS9WD7OjRdj8UqHs03VIibnYN2V4cR6Uj05mkIYroYjPXU3YQJjjxaLopt e/3c1iJYbiHFCOvQzpCM3JqP68Rs6Z6tKD2nIXjRsn+bVWes/4VvUiHb/6u42xrje+Tp e99+Oj4yiHdPht/BaF0WCIjRmOs4hNHe7sTM+IO4aGfA0oK0A1c2DvgwxzokMnDZKAUJ rRmIJiJqfuB08j/gkqSXnTMAMu0+YMmgByg3nLR+1NA36BI42KPVXktB6W8AzvuNEN+d ZU2g== Original-Received: by 10.60.7.229 with SMTP id m5mr13505120oea.10.1350424659132; Tue, 16 Oct 2012 14:57:39 -0700 (PDT) Original-Received: by 10.76.120.236 with HTTP; Tue, 16 Oct 2012 14:57:39 -0700 (PDT) In-Reply-To: <87obk22j2i.fsf@gnu.org> X-Google-Sender-Auth: 7ECJh8tZgmE4mUhtDkqYZtYEj9w X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.214.169 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:14993 Archived-At: Hello, On Tue, Oct 16, 2012 at 5:39 PM, Ludovic Court=E8s wrote: > I think =91current-reader=92 should remove the need to have a port-to-rea= der > mapping, no? > > Thanks for looking into this! > > Ludo=92. > I might not understand this correctly, but aren't the reader flags only supposed to affect the specific file they're reading from? That's why we need a different set of reader options for each port. Of course, there could be one global reader that has a port-to-reader-options mapping, but that's a lot like a port-to-reader mapping. I think what you're suggesting is making a new reader for each input file, letting that reader set its flags based on directives, and then abandoning that reader when the file is read. Is that right? I'm just trying to understand the issue, Noah