[plt-scheme] How do optional parameters work

From: Jos Koot (jos.koot at telefonica.net)
Date: Sun Jun 8 16:32:34 EDT 2008

Has been solved.
With thanks to Matthew Flatt (and PLT in general)
See   http://bugs.plt-scheme.org/query/?cmd=view&pr=9466
Jos
  ----- Original Message ----- 
  From: David Einstein 
  To: PLT Scheme Mailing List 
  Sent: Sunday, June 08, 2008 10:25 PM
  Subject: [plt-scheme] How do optional parameters work


  If I enter the following module into DrScheme, version 3.99.0.26-svn6jun2008 (self compiled on a ubuntu zmd64 (module language)

  #lang scheme
  (provide foo)
  (define (foo a #:optional (b #f)) #t)

  and hit check syntax 

  I get an internal error

  path->complete-path: expects argument of type <path (for any platform) or string>; given |expanded module|

  and Dr scheme is in a confused state  with nothing showing up in the definitions window  (it does not want to look at my code, and so it assumes that I don't either)

  I'm not sure whether I am screwed up, or this is a bug.  Probably both.



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


  _________________________________________________
    For list-related administrative tasks:
    http://list.cs.brown.edu/mailman/listinfo/plt-scheme
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080608/281bbd58/attachment.html>

Posted on the users mailing list.