From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.bugs Subject: Re: 1.8.2 srfi-19 warns about current-time Date: Tue, 09 Oct 2007 23:22:32 +0200 Message-ID: <87k5pw2dbb.fsf@chbouib.org> References: <470906BE.9050207@wilsonjc.us> <878x6esuva.fsf@chbouib.org> <877ilxfpwd.fsf@chbouib.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1191965219 12480 80.91.229.12 (9 Oct 2007 21:26:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Oct 2007 21:26:59 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Oct 09 23:26:57 2007 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IfMbP-0008OX-L2 for guile-bugs@m.gmane.org; Tue, 09 Oct 2007 23:26:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfMbJ-0005C5-Ne for guile-bugs@m.gmane.org; Tue, 09 Oct 2007 17:26:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IfMar-0004pr-IS for bug-guile@gnu.org; Tue, 09 Oct 2007 17:26:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IfMap-0004oF-QN for bug-guile@gnu.org; Tue, 09 Oct 2007 17:26:21 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfMap-0004oA-Md for bug-guile@gnu.org; Tue, 09 Oct 2007 17:26:19 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IfMap-0002SJ-BP for bug-guile@gnu.org; Tue, 09 Oct 2007 17:26:19 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IfMYp-0004V3-1Q for bug-guile@gnu.org; Tue, 09 Oct 2007 21:24:15 +0000 Original-Received: from adh419.fdn.fr ([80.67.176.9]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Oct 2007 21:24:15 +0000 Original-Received: from ludo by adh419.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Oct 2007 21:24:15 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 42 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: adh419.fdn.fr X-URL: http://www.laas.fr/~lcourtes/ 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: i486-pc-linux-gnu User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:xJsdC2mOa0k3gaa0vBXFlsWGBtI= X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:3619 Archived-At: Hi, Gregory Marton writes: > On Mon, 8 Oct 2007, Ludovic Courtès wrote: >> You can insert the following line at the beginning of your program: >> >> (default-duplicate-binding-handler 'last) > > This affects all bindings, not just the ones I no longer want to be > warned about. Yes. > resolve-module finds the module with the given name and returns it. > http://gnu.rtin.bz/software/guile/docs/docs-1.8/guile-ref/Module-System-Reflection.html > > module-replace! forces the list of symbols in its second argument to > be put into the :replace list? > (could not find documentation) Correct. It's not documented (yet). > What's the risk, besides unwittingly using srfi-19's current-time when > I wanted to use the core current-time? The risk is that you're using undocumented features that might change or vanish someday. Note that using `:renamer' as Jon suggested is more "future-proof", albeit slightly less convenient. > As a question outside the scope of this conversation, why does srfi-19 > not use time-monotonic to mean what the core current-time means, and > make that default instead of utc? Because the argument to SRFI-19 `current-time' defaults to `time-utc', and we can't change it. :-) Thanks, Ludovic. _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile