Re: Converting symbols to procedures?
Norman Gray <[email protected]>
| Newsgroups | gmane.comp.java.sisc.user |
|---|---|
| Message-ID | <[email protected]> |
On 2006 Aug 6 , at 10.08, Warren Henning wrote:
> I want to write some function dispatching code that involves somehow
> converting strings to procedure references. I know about
> string->symbol but I don't see a way of converting symbols to
> procedure references.
One way is to set up an alist of ("string" . procedure) pairs, and so
do the conversion `by hand' before invoking the procedure you recover.
Rather more flexible is to use EVAL. There's a discussion of this at
<http://www.codecomments.com/archive282-2004-12-335622.html> for
example.
Norman
--
------------------------------------------------------------------------
----
Norman Gray / http://nxg.me.uk
eurovotech.org / University of Leicester, UK
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV