[plt-scheme] symbols redefined in SRFIs
On 10/23/06, Dan Muresan <danmbox at gmail.com> wrote:
> Hi, how can I write a module that uses SRFI-1?
>
> (module tst mzscheme (provide f) (require (lib "1.ss" "srfi")) (define f 10))
>
Use prefix:
(module tst mzscheme (provide f) (require (prefix srfi1: (lib "1.ss"
"srfi"))) (define f 10))
and then all identifiers imported from srfi1 have srfi1: prefix, for
example srfi1:reverse!.
Cheers,
--
Paulo Jorge Matos - pocm at soton.ac.uk
http://www.personal.soton.ac.uk/pocm
PhD Student @ ECS
University of Southampton, UK