[plt-scheme] Renaming +, -, *, /

From: Jens Axel Søgaard (jensaxel at soegaard.net)
Date: Sun Oct 9 18:42:05 EDT 2005

Paulo Jorge Matos wrote:
> Hi all,
> 
> What's the best way to rename inside a module +, -, *, /, probably
> inserting a prefix?
> I would use prefix in a require but +,-,* and / belongs to the
> mzscheme language so I really can't understand the best way to do
> this.

An alternative to Eric's suggestion is to use a form that
rebinds the operations in the body.

See for example the form WITH-MODULUS from

<http://list.cs.brown.edu/pipermail/plt-scheme/2005-July/009257.html>

-- 
Jens Axel Søgaard




Posted on the users mailing list.