<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Looks like a bug to me. The error is happening inside srfi-lite-lib, and as far as I can tell, it’s due to a rather strange line of code on line 1488 of srfi/19/time.rkt:</div><div class=""><br class=""></div><div class=""><font face="Courier" class="">(do-nothing (lambda (val object) (values)))</font></div><div class=""><br class=""></div><div class="">This function returns zero values, causing the arity error. As far as I can tell, it should be this instead:</div><div class=""><br class=""></div><div class=""><font face="Courier" class="">(do-nothing (lambda (val object) object))</font></div><div class=""><br class=""></div><div class="">That is, it should simply return the <font face="Courier" class="">object</font> parameter it receives. That seems to fix the problem for me, but I’m quite unfamiliar with this code, so I can’t be sure.</div><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 31, 2015, at 20:31, Jordan Johnson <<a href="mailto:jmj@fellowhuman.com" class="">jmj@fellowhuman.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi all,<div class=""><br class=""></div><div class="">I’m running into this problem with <b class="">string->date</b> in <b class="">srfi/19</b>:</div><div class=""><br class=""></div><div class="">;;; begin Interactions</div><div class="">> (require srfi/19)</div><div class="">> (string->date "Sun, 02 Feb 2015" "~a, ~d ~b ~Y”)</div><div class="">result arity mismatch;</div><div class="">expected number of values not received</div><div class=""> expected: 1</div><div class=""> received: 0</div><div class=""> values...:</div><div class="">;;; end Interactions</div><div class=""><br class=""></div><div class="">I’m assuming there’s something I am missing about how dates are handled, but from what I’ve read it seems like the code above should be doing it. What am I missing?</div><div class=""><br class=""></div><div class="">(And, is there a better way to be reading dates in Racket, or is this the preferred way?)</div><div class=""><br class=""></div><div class="">Best,</div><div class="">jmj</div><div class=""><br class=""></div><div class="">P.S. Attempting to copy/paste the above error message from the Interactions window crashed DrR (v6.1.1) three times. This doesn’t seem to be reproducible by copying any other error messages, though, so I haven’t filed a bug report yet; figured perhaps the answer to the <b class="">string->date</b> problem may shed some light on this, too...</div><div class=""><br class=""></div><div class=""><br class=""></div></div>____________________<br class="">  Racket Users list:<br class="">  <a href="http://lists.racket-lang.org/users" class="">http://lists.racket-lang.org/users</a><br class=""></div></blockquote></div><br class=""></body></html>