[plt-scheme] (require mzscheme) issue

From: Jos Koot (jos.koot at telefonica.net)
Date: Wed Jan 9 09:34:51 EST 2008

At top level you do not have that protection.
Within a module you do:
 At top level
(require mzscheme)
(define + -)
(+ 1 2) --> -1

In a module
(module a mzscheme (define + -)) -->
error module: identifier is already imported in: +

Morale: use modules.
Jos

----- Original Message ----- 
From: "Psy-Kosh" <psykosh at earthlink.net>
To: <plt-scheme at list.cs.brown.edu>
Sent: Wednesday, January 09, 2008 5:41 AM
Subject: [plt-scheme] (require mzscheme) issue


> dumb question, but am using v372...
>
> isn't doing (require mzscheme), even at the top level, supposed to prevent 
> me from later redefining standard procs and so on?
>
> ie, shouldn't doing the following:
>
> (require mzscheme)
> (define + -)
>
> return an error?
>
> Or have I misunderstood something?
>
> Psy-Kosh
> _________________________________________________
>  For list-related administrative tasks:
>  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 



Posted on the users mailing list.