While implementing the matching function I wanted to represent the type<div>as follows: (:type x :name) and then to transform :name -> "name" -> function</div><div><br></div><div>now, I am using typep as suggested by Greg</div>
<div><br></div><div>Taoufik</div><div><br><div class="gmail_quote">On Sun, Dec 5, 2010 at 6:12 AM, Robert P. Goldman <span dir="ltr"><<a href="mailto:rpgoldman@sift.info">rpgoldman@sift.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I don't understand.<br>
<br>
String -> function<br>
<br>
Isn't really meaningful. Don't you want<br>
<br>
String x package -> function?<br>
<br>
R<br>
<div><div></div><div class="h5"><br>
On Dec 4, 2010, at 1:36, Stas Boukarev <<a href="mailto:stassats@gmail.com">stassats@gmail.com</a>> wrote:<br>
<br>
> Taoufik Dachraoui <<a href="mailto:dachraoui.taoufik@gmail.com">dachraoui.taoufik@gmail.com</a>> writes:<br>
><br>
>> I found another way<br>
>><br>
>><br>
>> (defun f (string)<br>
>> (read-from-string (format nil "(function ~A)" string)))<br>
>><br>
>> I am interested to know the pros and cons of using read-from-string<br>
>> and to compare this to your code<br>
>><br>
> read-from-string interns symbol, which may be undesirable, and it can<br>
> execute arbitrary code, so you need to bind *read-eval* to nil.<br>
><br>
> --<br>
> With Best Regards, Stas.<br>
</div></div>> _______________________________________________<br>
> Openmcl-devel mailing list<br>
> <a href="mailto:Openmcl-devel@clozure.com">Openmcl-devel@clozure.com</a><br>
> <a href="http://clozure.com/mailman/listinfo/openmcl-devel" target="_blank">http://clozure.com/mailman/listinfo/openmcl-devel</a><br>
</blockquote></div><br></div>