From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gregory Marton Newsgroups: gmane.lisp.guile.bugs Subject: Re: 1.8.2 srfi-19 warns about current-time Date: Mon, 8 Oct 2007 16:51:09 -0400 (EDT) Message-ID: References: <470906BE.9050207@wilsonjc.us> <878x6esuva.fsf@chbouib.org> <877ilxfpwd.fsf@chbouib.org> Reply-To: Gregory Marton NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="511713324-1639214393-1191876664=:25834" X-Trace: sea.gmane.org 1191876721 31986 80.91.229.12 (8 Oct 2007 20:52:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Oct 2007 20:52:01 +0000 (UTC) Cc: bug-guile@gnu.org To: Ludovic =?iso-8859-1?Q?Court=E8s?= Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Oct 08 22:51: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 1IezZZ-0006sM-5f for guile-bugs@m.gmane.org; Mon, 08 Oct 2007 22:51:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IezZT-00007S-Ha for guile-bugs@m.gmane.org; Mon, 08 Oct 2007 16:51:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IezZP-00007B-6V for bug-guile@gnu.org; Mon, 08 Oct 2007 16:51:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IezZK-00006f-LT for bug-guile@gnu.org; Mon, 08 Oct 2007 16:51:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IezZK-00006c-Ex for bug-guile@gnu.org; Mon, 08 Oct 2007 16:51:14 -0400 Original-Received: from outgoing.csail.mit.edu ([128.30.2.149]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IezZG-00039b-9p; Mon, 08 Oct 2007 16:51:10 -0400 Original-Received: from ashmore.csail.mit.edu ([128.30.44.32]) by outgoing.csail.mit.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1IezZF-0001mn-Hi; Mon, 08 Oct 2007 16:51:09 -0400 Original-Received: from gremio (helo=localhost) by ashmore.csail.mit.edu with local-esmtp (Exim 4.50) id 1IezZF-0000uN-A7; Mon, 08 Oct 2007 16:51:09 -0400 In-Reply-To: <877ilxfpwd.fsf@chbouib.org> X-Detected-Kernel: Linux 2.6 (newer, 3) 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:3617 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --511713324-1639214393-1191876664=:25834 Content-Type: TEXT/PLAIN; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Thank you! On Mon, 8 Oct 2007, Ludovic Court=E8s wrote: > Hi, > > Gregory Marton writes: > >> I indeed hadn't noticed that it was intentional, but I'm in agreement >> with Ludovic. I'm concerned that my customer shouldn't be confused >> and worried by a warning, and I see no way to override the warning >> myself. > > 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= =20 about. > This will instruct Guile to always use the `last' duplicate binding > handler, thereby not issuing any warning (make sure you understand what > it does, looking at the manual). > > Another solution would be (again, execute it ASAP): > > (module-replace! (resolve-module '(srfi srfi-19)) > '(current-time)) 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-Ref= lection.html module-replace! forces the list of symbols in its second argument to be put= =20 into the :replace list? (could not find documentation) > Use at your own risk. :-) What's the risk, besides unwittingly using srfi-19's current-time when I=20 wanted to use the core current-time? This sounds like the solution I want to adopt. As a question outside the scope of this conversation, why does srfi-19 not= =20 use time-monotonic to mean what the core current-time means, and make that= =20 default instead of utc? Then it could :replace without fear, and we=20 wouldn't be in this wrinkle. The "perhaps this will change in the future"= =20 gives me hope.=20 http://www.gnu.org/software/guile/manual/html_node/SRFI_002d19-Time.html#SR= FI_002d19-Time Thanks very much for your help! Grem --=20 ------ __@ Gregory A. Marton http://csail.mit.edu/~gremio/ --- _`\<,_ . -- (*)/ (*) Truth is not determined by majority vote. ~~~~~~~~~~~~~~~~-~~~~~~~~_~~~_~~~~~v~~~~^^^^~~~~~--~~~~~~~~~~~~~~~++~~~~~~~ --511713324-1639214393-1191876664=:25834 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile --511713324-1639214393-1191876664=:25834--