[Ecls-list] find-symbol("NIL")

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Fri Jun 20 21:57:11 UTC 2008


On Sat, Jun 14, 2008 at 3:20 AM, Vadim Konovalov <vadrer at gmail.com> wrote:
> I'm using this approach:
>
>        current_package = ecl_current_package();
>        sym = ecl_find_symbol((cl_object)&lisp_str, current_package, &intern);
>
> The thing I don't understand - I can easily find symbol "T" but I can't find
> symbol "NIL" - why is this so?
>
> Actually there is Cnil_symbol, and Ct, and I was expecting for the searchi
> of "NIL" symbol to return Cnil_symbol to me, is there a way to explain this?

Cnil_symbol is not NIL. Cnil is NIL. Cnil_symbol is the data that is
needed for the symbol: name, package, etc. Cnil is just a simple
computer word that represents NIL, 0x1, and is the thing that you
should use.

Hope this helps you.

Juanjo

-- 
Facultad de Fisicas, Universidad Complutense,
Ciudad Universitaria s/n Madrid 28040 (Spain)
http://juanjose.garciaripoll.googlepages.com




More information about the ecl-devel mailing list