From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludovic.courtes@laas.fr (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] SRFI-34, SRFI-60 and core bindings Date: Fri, 21 Oct 2005 09:52:26 +0200 Organization: LAAS-CNRS Message-ID: <87fyqvgvd1.fsf@laas.fr> References: <87zmp4mj1f.fsf@laas.fr> <87sluw9dqa.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1129892945 32181 80.91.229.2 (21 Oct 2005 11:09:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Oct 2005 11:09:05 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Oct 21 13:09:05 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ESukU-0001LJ-9x for guile-devel@m.gmane.org; Fri, 21 Oct 2005 13:07:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESuac-00015X-FU for guile-devel@m.gmane.org; Fri, 21 Oct 2005 06:57:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ESrlP-0003Ny-IP for guile-devel@gnu.org; Fri, 21 Oct 2005 03:56:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ESrlK-0003NO-3U for guile-devel@gnu.org; Fri, 21 Oct 2005 03:56:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ESrlH-0003MH-K2 for guile-devel@gnu.org; Fri, 21 Oct 2005 03:56:24 -0400 Original-Received: from [140.93.0.15] (helo=laas.laas.fr) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1ESrlG-0005qQ-CC for guile-devel@gnu.org; Fri, 21 Oct 2005 03:56:23 -0400 Original-Received: by laas.laas.fr (8.13.1/8.13.4) with SMTP id j9L7uHvo007098; Fri, 21 Oct 2005 09:56:17 +0200 (CEST) Original-To: guile-devel@gnu.org X-URL: http://www.laas.fr/~lcourtes/ X-Revolutionary-Date: 30 =?iso-8859-1?Q?Vend=E9miaire?= an 214 de la =?iso-8859-1?Q?R=E9volution?= X-PGP-Key-ID: 0xEB1F5364 X-PGP-Key: http://www.laas.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 821D 815D 902A 7EAB 5CEE D120 7FBA 3D4F EB1F 5364 X-OS: powerpc-unknown-linux-gnu Mail-Followup-To: guile-devel@gnu.org In-Reply-To: <87sluw9dqa.fsf@zip.com.au> (Kevin Ryde's message of "Fri, 21 Oct 2005 05:42:53 +1000") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) X-Spam-Score: 0.496 () MAILTO_TO_SPAM_ADDR X-Scanned-By: MIMEDefang at CNRS-LAAS 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:5339 Archived-At: Kevin Ryde writes: > I don't really want to silently replace the core bit-count, the > srfi-60 one is completely different. It's pretty annoying to get a > warning or have to use #:renamer, but I don't know a better way. `#:replace' _is_ this better way: it does _not_ override the core binding, unlike `(use-modules (srfi srfi-60))' (with no renamer) in the current state. What it does is that is replaces this binding only within the module user: the binding replacement is confined. guile> (define-module (chbouib)) # guile> (use-modules (srfi srfi-60)) guile> (bit-count 2) 1 guile> (set-current-module (resolve-module '(guile-user))) # guile> (bit-count #f (make-uniform-vector 8 #t #f)) 8 This is exactly the behavior users may expect. > (Incidentally, `current-time' from srfi-19 is also a problem.) Right, it also annoyed me in the past. If we agree that `#:replace' is the right thing, then we can do the same for this one. Ludovic. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel