[plt-scheme] help - a simple dispatcher problem

From: Anton van Straaten (anton at appsolutions.com)
Date: Tue Dec 7 03:03:28 EST 2004

actuary77 at comcast.net wrote:
> Question:
> How can I rewrite to recognize the symbol a
> passed to myfunc as the orginial definition a?

Instead of (define newfunc (myfunc 'a)), try: (define newfunc (myfunc a))

The quote in your original expression has the effect of passing through a
quoted symbol, rather than the value referred to by the variable a.


Posted on the users mailing list.