[Openmcl-devel] name (string) to function
Robert P. Goldman
rpgoldman at sift.info
Sat Dec 4 21:12:09 PST 2010
I don't understand.
String -> function
Isn't really meaningful. Don't you want
String x package -> function?
R
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
> http://clozure.com/mailman/listinfo/openmcl-devel
More information about the Openmcl-devel
mailing list