[plt-scheme] treating a string a procedure name

From: Noel Welsh (noelwelsh at yahoo.com)
Date: Mon Feb 16 12:10:35 EST 2004

Does eval-string in string.ss fit the bill?

(require (lib "string.ss"))

(define (square x)
  (* x x))

((eval-string "square") 2)
> 4

Noel

=====
Email: noelwelsh <at> yahoo <dot> com
Jabber: noelw <at> jabber <dot> org

__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html


Posted on the users mailing list.