Re: [Scheme-reports] Shadowing imports at toplevel
John Cowan 25 Apr 2011 05:40 UTC
Andre van Tonder scripsit:
> At the toplevel, can we
>
> 1) shadow an imported binding with a new definition or syntax
> definition? 2) shadow an imported binding with a new import?
These shadowings are allowed at the REPL but not within a module. The
draft does not yet specify what happens in a top-level script. My view
is that top-level scripts should run in the REPL.
It's also my view that redefinition of a syntax keyword does not affect
existing procedure definitions that make use of it. This is what
happens in all extant R5RS Schemes except SCM.
--
A mosquito cried out in his pain, John Cowan
"A chemist has poisoned my brain!" http://www.ccil.org/~cowan
The cause of his sorrow cowan@ccil.org
Was para-dichloro-
Diphenyltrichloroethane. (aka DDT)
_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports