[plt-scheme] dumb question

From: Jos Koot (jos.koot at telefonica.net)
Date: Fri Dec 19 14:04:49 EST 2008

Thanks Eli, that works.
Now that I have seen your answer it's clear that I misinterpreted the line:
   (except-out provide-spec provide-spec ...)
in the docs.
Thanks, Jos

----- Original Message ----- 
From: "Eli Barzilay" <eli at barzilay.org>
To: "Jos Koot" <jos.koot at telefonica.net>
Cc: <plt-scheme at list.cs.brown.edu>
Sent: Friday, December 19, 2008 7:30 PM
Subject: Re: [plt-scheme] dumb question


> On Dec 19, Jos Koot wrote:
>> Hi,
>> 
>> (module x mzscheme
>>  (provide (all-from-except mzscheme add1))
>>  (add1 1))
>> 
>> and
>> 
>> (module x scheme
>>  (add1 1))
>> 
>> Work ok, but:
>> 
>> (module x scheme
>>  (provide (except-out scheme add1))
>>  (add1 1))
>> 
>> Gives:
>> 
>> except-out: identifier to remove `add1' not included in nested provide spec in: scheme
>> 
>> How come? Am I overlooking some parts of the docs?
> 
> You need do do this:
> 
>  (module x scheme
>    (provide (except-out (all-from-out scheme) add1))
>    (add1 1))
> 
> -- 
>          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
>                  http://www.barzilay.org/                 Maze is Life!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20081219/8a631468/attachment.html>

Posted on the users mailing list.