[plt-scheme] Re: polymorphism of primitive types

From: Danny Yoo (dyoo at hkn.eecs.berkeley.edu)
Date: Tue Oct 18 14:10:17 EDT 2005


On Tue, 18 Oct 2005, Yoav Goldberg wrote:

> Ah!
>
> (module foo mzscheme
>    (require (lib "1" "srfi")))
>
> doesn't work. I think this can be considered as a bug - that's not just
> MY code, but the very first srfi that can't be used inside a module
> (without prefixing).

Hi Yoav,

This has been mentioned before; here you go:

    http://list.cs.brown.edu/pipermail/plt-scheme/2004-February/004474.html

For example:

######
> (module foo mzscheme
     (require (lib "list.ss" "srfi" "1"))
     (define mylist '(alpha beta gamma delta))
     (s:reverse! mylist)
     (provide mylist))
> (require foo)
> mylist
(alpha)
######

Hope this helps!



Posted on the users mailing list.