[ sisc-Bugs-806808 ] Order of import of srfi-18 and srfi-19 can break code

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.java.sisc.devel
Message-ID <[email protected]>
Bugs item #806808, was opened at 2003-09-15 14:10
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379534&aid=806808&group_id=23735

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Order of import of srfi-18 and srfi-19 can break code

Initial Comment:
The following code: 



(require-library 'sisc/libs/srfi)

(import srfi-18)

(import srfi-19)

(time->seconds (current-time))



Gives:



Error: accessor applied to bad value



But if I reverse the imports it works:



(require-library 'sisc/libs/srfi)

(import srfi-19)

(import srfi-18)

(time->seconds (current-time))



Gives: 1063660074



But now if I use something from srfi-19 I get:



(time-second (current-time))



Gives:

Error: accessor applied to bad value



But back to the original order and that works:



(require-library 'sisc/libs/srfi)

(import srfi-18)

(import srfi-19)

(time-second (current-time))



Gives: 1063660133



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=379534&aid=806808&group_id=23735


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.