unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* [bug #19807] srfi-19: current-time return type inconsistency
@ 2007-05-05 14:23 anonymous
  2007-05-06  8:37 ` anonymous
  2007-05-10 13:20 ` Ludovic Courtès
  0 siblings, 2 replies; 4+ messages in thread
From: anonymous @ 2007-05-05 14:23 UTC (permalink / raw)
  To: bug-guile


URL:
  <http://savannah.gnu.org/bugs/?19807>

                 Summary: srfi-19: current-time return type inconsistency
                 Project: Guile
            Submitted by: None
            Submitted on: Saturday 05/05/07 at 14:23 UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

The procedure current-time in srfi-19 returns a time record:

  guile> (current-time)
  #<time type: time-utc nanosecond: ...

...except when the time type time-process is requested in which case a list
is returned:

  guile> (current-time time-process)
  (time-process ...

This causes other functionality to break, for example time-difference:

  guile> (time-difference
           (current-time)
           (current-time))
  #<time type: time-duration nanosecond: ...

  guile> (time-difference
           (current-time time-process)
           (current-time time-process))
  ...
  ... not-a-record (time-process ...
  ABORT: (misc-error)

Suggested fix:

There are two definitions of priv:current-time-process in srfi-19.scm. The
first returns a time record, and second returns the list. Commenting out the
second gives me the behavior I expected.

thanks for your time,
Scott Shedden





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?19807>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-05-10 13:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-05 14:23 [bug #19807] srfi-19: current-time return type inconsistency anonymous
2007-05-06  8:37 ` anonymous
2007-05-09 21:17   ` Ludovic Courtès
2007-05-10 13:20 ` Ludovic Courtès

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).