* [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
* [bug #19807] srfi-19: current-time return type inconsistency 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 1 sibling, 1 reply; 4+ messages in thread From: anonymous @ 2007-05-06 8:37 UTC (permalink / raw) To: bug-guile Follow-up Comment #1, bug #19807 (project guile): A further point: The shadowed version of make-time-process calls make-time with its positional parameters in the wrong order: guile> (use-modules (srfi srfi-19)) guile> (current-time time-process) #<time type: time-process nanosecond: 0 second: 350000000> Scott _______________________________________________________ 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
* [bug #19807] srfi-19: current-time return type inconsistency 2007-05-06 8:37 ` anonymous @ 2007-05-09 21:17 ` Ludovic Courtès 0 siblings, 0 replies; 4+ messages in thread From: Ludovic Courtès @ 2007-05-09 21:17 UTC (permalink / raw) To: Ludovic Courtès, bug-guile Update of bug #19807 (project guile): Open/Closed: Open => Closed _______________________________________________________ Follow-up Comment #2: This is now fixed in both the `HEAD' and 1.8 CVS branches. Thanks for your report! Ludovic. _______________________________________________________ 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
* Re: [bug #19807] srfi-19: current-time return type inconsistency 2007-05-05 14:23 [bug #19807] srfi-19: current-time return type inconsistency anonymous 2007-05-06 8:37 ` anonymous @ 2007-05-10 13:20 ` Ludovic Courtès 1 sibling, 0 replies; 4+ messages in thread From: Ludovic Courtès @ 2007-05-10 13:20 UTC (permalink / raw) To: bug-guile Hi, anonymous <INVALID.NOREPLY@gnu.org> writes: > URL: > <http://savannah.gnu.org/bugs/?19807> The bug is now fixed in `HEAD' and 1.8 (somehow, it seems that the bug-closing message didn't make it to the list). Thanks, Ludovic. _______________________________________________ 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).