[plt-scheme] symbols redefined in SRFIs

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Mon Oct 23 09:09:41 EDT 2006

Dan Muresan skrev:
>> >> (module mod mzscheme2 (provide f)
>>                  ^
>> (module mod (lib "mzscheme2.ss" "danm")
> 
> That looks ugly... Anyway to install that as just mzscheme2 ?
> 
>> See also the lang collection:
>>
>> <http://ja.soegaard.net/planet/html/collects/lang/>
> 
> I see that it uses something called tool, just like swindle, but I'm
> not sure how that works. The tool.ss documentation is large, and I
> can't find the part about the alternative syntax for info.ss.

I think you misunderstood. Take the Pretty Big Language.
It is defined in (lib "plt-pretty-big.ss" "lang") as

(module plt-pretty-big "plt-pretty-big-text.ss"
   (require (lib "mred.ss" "mred")
            "private/imageeq.ss")

   (provide (all-from "plt-pretty-big-text.ss")
	   (all-from (lib "mred.ss" "mred"))
            (all-from "private/imageeq.ss")))

In similar way you ought to define your language
as:

(module mzscheme2 mzscheme
   (require (prefix srfi: (lib "1.ss" "srfi"))
   (provide (all-from-except mzscheme
                             reverse! map
                             other-conflicting-names))
   (provide (rename srfi:reverse! reverse!)))

instead of copying the DrScheme tool.

(Unless of course, you'd like your language to
be choosable in DrScheme)

Note: Adding a new Language to DrScheme will not
help you make it run in MzScheme.

-- 
Jens Axel Søgaard



Posted on the users mailing list.