[plt-scheme] new require-spec: all-except-from

From: ifconfig (nslookupifconfig at hotmail.com)
Date: Fri May 14 08:13:39 EDT 2004

Why do you need this?
If it's for

(module foo mzscheme
  (define a 1)
  (provide a))

(module bar mzscheme
  (require foo)
  (define b 2)
  (provide a b))

And requiring both foo and bar, then (require foo) (require bar) would work.

If it's for

(module foo mzscheme
  (define a 1)
  (provide a))

(module bar mzscheme
  (define a 2)
  (define b 3)
  (provide a b))

Then I don't know how this could be implemented.

Ifconfig.

> -----Original Message-----
> From: plt-scheme-admin at list.cs.brown.edu [mailto:plt-scheme-
> admin at list.cs.brown.edu] On Behalf Of Doug Orleans
> Sent: Friday, May 14, 2004 7:29 AM
> To: plt-scheme at list.cs.brown.edu
> Subject: [plt-scheme] new require-spec: all-except-from
> 
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> This would be really handy:
> 
> (require "foo.ss")
> (require (all-except-from "bar.ss" "foo.ss"))
> 
> This would require everything from "foo.ss", then everything from
> "bar.ss" that wasn't already imported from "foo.ss".  This would be
> much nicer than using `all-except' and having to enumerate all the
> imports from "bar.ss" that conflict with "foo.ss".
> 
> Is this doable?
> 
> --dougo at place.org


Posted on the users mailing list.