[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 1.8.2 srfi-19 warns about current-time
From: |
Gregory Marton |
Subject: |
Re: 1.8.2 srfi-19 warns about current-time |
Date: |
Mon, 8 Oct 2007 11:35:08 -0400 (EDT) |
Thanks Jon, Ludovic,
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.
This is a bit of overkill, but I thought it might work:
(with-error-to-string (lambda () (use-modules (srfi srfi-19))))
But no: use-modules can only be used at top level.
Even if I could figure out a way to do that, (I dunno, figuring out what
global variable (current-error-port) uses and manually set!ing it to
something else temporarily?) I'd be worried about missing actually
important warnings.
Do I have any option besides forking srfi-19.scm and using :replace?
Thanks,
Grem
Hi,
Jon Wilson <address@hidden> writes:
SRFI-19, on the other hand, exports its own version of |current-time|
(see SRFI-19 Time
<http://www.gnu.org/software/guile/manual/html_node/SRFI_002d19-Time.html#SRFI_002d19-Time>)
which is not compatible with the core |current-time| function (see
Time
<http://www.gnu.org/software/guile/manual/html_node/Time.html#Time>). Therefore,
SRFI-19 does not use |#:replace|.
FWIW, I think it's pointless to *not* use `:replace' in situations like
this where one can reasonably assume the user knows that bindings are
going to overridden:
http://thread.gmane.org/gmane.lisp.guile.devel/5330
http://thread.gmane.org/gmane.lisp.guile.devel/5360
There is no consensus about it, though. :-)
Thanks,
Ludovic.
_______________________________________________
Bug-guile mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-guile
--
------ __@ Gregory A. Marton http://csail.mit.edu/~gremio/
--- _`\<,_ .
-- (*)/ (*) Now accepting spam for just $1000 per word.
~~~~~~~~~~~~~~~~-~~~~~~~~_~~~_~~~~~v~~~~^^^^~~~~~--~~~~~~~~~~~~~~~++~~~~~~~
- 1.8.2 srfi-19 warns about current-time, Gregory Marton, 2007/10/07
- Re: 1.8.2 srfi-19 warns about current-time, Jon Wilson, 2007/10/07
- Re: 1.8.2 srfi-19 warns about current-time, Ludovic Courtès, 2007/10/07
- Re: 1.8.2 srfi-19 warns about current-time,
Gregory Marton <=
- Re: 1.8.2 srfi-19 warns about current-time, Ludovic Courtès, 2007/10/08
- Re: 1.8.2 srfi-19 warns about current-time, Gregory Marton, 2007/10/08
- Re: 1.8.2 srfi-19 warns about current-time, Jon Wilson, 2007/10/08
- Re: 1.8.2 srfi-19 warns about current-time, Ludovic Courtès, 2007/10/09
- Re: 1.8.2 srfi-19 warns about current-time, Gregory Marton, 2007/10/09
- Re: 1.8.2 srfi-19 warns about current-time, Ludovic Courtès, 2007/10/10