[Fwd: Re: [Ecls-list] cl_defparameter() question]
Juan Jose Garcia Ripoll
worm at arrakis.es
Thu May 6 05:03:05 UTC 2004
Michael O'Connor wrote:
> c_string_to_object() works - thanks! However I
> couldn't get cl_intern() to work, so this works:
>
> cl_defparameter(c_string_to_object("*test-var*"),
> make_simple_string("test-value"));
>
> But this doesn't:
>
> cl_defparameter(cl_intern(1,
> make_simple_string("*test-var*")),
> make_simple_string("test-value"));
>
> I'd be curious to know why that is.
>
For the same reason it does not work under Common-Lisp: you have not
told INTERN in which package it should put the symbol What about this?
cl_defparameter(cl_intern(2,
make_simple_string("*test-var*"),
make_simple_string("MYPACKAGE")),
make_simple_string("test-value"));
Juanjo
-------------- next part --------------
An embedded message was scrubbed...
From: Juan Jose Garcia Ripoll <jlr at mpq.mpg.de>
Subject: Re: [Ecls-list] cl_defparameter() question
Date: Thu, 06 May 2004 13:57:26 +0200
Size: 1503
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20040506/22c9b3ff/attachment.mht>
More information about the ecl-devel
mailing list