From: Gregory Marton <gremio@csail.mit.edu>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: bug-guile@gnu.org
Subject: Re: 1.8.2 srfi-19 warns about current-time
Date: Mon, 8 Oct 2007 11:35:08 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.62.0710081124100.25834@ashmore.csail.mit.edu> (raw)
In-Reply-To: <878x6esuva.fsf@chbouib.org>
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 <jsw@wilsonjc.us> 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
> Bug-guile@gnu.org
> 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~~~~^^^^~~~~~--~~~~~~~~~~~~~~~++~~~~~~~
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
next prev parent reply other threads:[~2007-10-08 15:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-05 4:25 1.8.2 srfi-19 warns about current-time Gregory Marton
2007-10-07 16:18 ` Jon Wilson
2007-10-07 17:22 ` Ludovic Courtès
2007-10-08 15:35 ` Gregory Marton [this message]
2007-10-08 18:00 ` Ludovic Courtès
2007-10-08 20:51 ` Gregory Marton
2007-10-08 21:34 ` Jon Wilson
2007-10-09 21:22 ` Ludovic Courtès
2007-10-09 22:38 ` Gregory Marton
2007-10-10 16:10 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.62.0710081124100.25834@ashmore.csail.mit.edu \
--to=gremio@csail.mit.edu \
--cc=bug-guile@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).