[Openmcl-devel] name (string) to function
Robert P. Goldman
rpgoldman at sift.info
Sat Dec 4 23:12:09 CST 2010
I don't understand.
String -> function
Isn't really meaningful. Don't you want
String x package -> function?
On Dec 4, 2010, at 1:36, Stas Boukarev <stassats at gmail.com> wrote:
> Taoufik Dachraoui <dachraoui.taoufik at gmail.com> writes:
>> I found another way
>> (defun f (string)
>> (read-from-string (format nil "(function ~A)" string)))
>> I am interested to know the pros and cons of using read-from-string
>> and to compare this to your code
> read-from-string interns symbol, which may be undesirable, and it can
> execute arbitrary code, so you need to bind *read-eval* to nil.
> With Best Regards, Stas.
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
More information about the Openmcl-devel