[racket] redefining primitives?

From: Todd O'Bryan (toddobryan at gmail.com)
Date: Tue Jan 18 16:14:38 EST 2011

Thanks, all! It was figuring out how to rename things on the way out
that I was having trouble with. :-)

On Tue, Jan 18, 2011 at 11:06 AM, Noel Welsh <noelwelsh at gmail.com> wrote:
> On Tue, Jan 18, 2011 at 3:57 PM, Todd O'Bryan <toddobryan at gmail.com> wrote:
>> Is it possible to redefine primitives, like +, and then provide them
>> to another module?
>
> Yes, and it works just like any module/definition.
>
>> If so, can you also undefine primitives? Like if I wanted to make a
>> student language where + only accepted two arguments and the list
>> function was unavailable, how could I do that?
>
> Yes. All that needs to change is instead of
>
>  #lang racket
>
> your students use
>
>  #lang s-exp my-lang.rkt
>
> N.
>


Posted on the users mailing list.