Fwd: [plt-scheme] already imported identitfiers in "pretty-big"
(module xxx (lib "plt-pretty-big-text.ss" "lang")
(require (lib "list.ss" "srfi" "1")))
still gives:
module: identifier already imported (from a different source) in: third
looking at the files, 1.ss includes list.ss then seems to re-export most of
it. it appears to be the "front end"
I started creating a list of all clashes to do a
(require (all-except (lib "1.ss" "srfi")
second third sixth ...
However this means for functions that are in common between mzlist/list.ss
and srfi-1, but srfi-1 has extended functionality on, the entended
functionality will be missing.
I guess my real solution is to moddify plt-pretty-big-text.ss
(module plt-pretty-big-text mzscheme
(require (lib "etc.ss")
(lib "file.ss")
(lib "list.ss")
(lib "class.ss")
to be:
(module plt-pretty-big-text mzscheme
(require (lib "etc.ss")
(lib "file.ss")
(lib ("list.ss" "srfi" "1"))
(lib "class.ss")
Corey
On 4/9/06, Jens Axel Søgaard <jensaxel at soegaard.net> wrote:
>
> > From: *Corey Sweeney*
> > Date: Apr 8, 2006 7:40 PM
> > Subject: Re: [plt-scheme] already imported identitfiers in "pretty-big"
> > To: jay at cs.brown.edu <mailto: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?
>
> I don't think so.
>
> It would be nice if the error message gave all clashing names at once
> instead of one at a time.
>
> For srfi-1 use
>
> (require (lib "list.ss" "srfi" "1"))
>
> to avoid clashes (could this be added to the top of the srfi-1
> documentation?).
>
> Or use Herman's
>
> <http://planet.plt-scheme.org/300/docs/dherman/list.plt/1/0/doc.txt>
>
> --
> Jens Axel Søgaard
>
>
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
--
((lambda (y) (y y)) (lambda (y) (y y)))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20060412/cb5668d7/attachment.html>