Fwd: [plt-scheme] already imported identitfiers in "pretty-big"
---------- Forwarded message ----------
From: Corey Sweeney <corey.sweeney at gmail.com>
Date: Apr 8, 2006 7:40 PM
Subject: Re: [plt-scheme] already imported identitfiers in "pretty-big"
To: jay at cs.brown.edu
hmm, don't actually need my "third" function to come from srfi/1.ss, I just
want to not have to deal with the clash every time i write some code. Is
there a way to do:
(module grr (lib "plt-pretty-big-text.ss" "lang")
(require (except (lib "1" "srfi") `those-that-clash))
(third `(1 2 3))
(fold + 1 `(1 2 3)))
short of figureing out a "those that clash" list by hand and typing them in?
Corey
On 4/8/06, Jay McCarthy <jay.mccarthy at gmail.com> wrote:
>
> Yes. You can use the "prefix" require form to avoid name clashes, i.e.:
>
>
> (module grr (lib "plt-pretty-big-text.ss" "lang")
> (require (prefix srfi:1: (lib "1" "srfi")))
>
> (srfi:1:third `(1 2 3))
> (third `(1 2 3)))
>
> Jay
>
>
> On 4/8/06, Corey Sweeney < corey.sweeney at gmail.com> wrote:
>
> > The following "program":
>
> (module grr (lib "plt-pretty-big-text.ss" "lang")
> (require (lib "1" "srfi")))
>
> gives the following error message:
>
> module: identifier already imported (from a different source) in: third
>
>
> Does this mean that the third function has 2 seperate implementations in
> the libraries?
>
>
> Corey
> --
> ((lambda (y) (y y)) (lambda (y) (y y)))
>
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
>
>
>
>
> --
> Jay McCarthy < jay at cs.brown.edu>
> http://jay.makeoutcity.com/
>
--
((lambda (y) (y y)) (lambda (y) (y y)))
--
Jay McCarthy <jay at cs.brown.edu>
http://jay.makeoutcity.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20060409/43ed4fe2/attachment.html>