GSOC | Extending Common Lisp support

Per Bothner per@bothner.com
Sun Jun 3 10:37:00 GMT 2012


On 06/03/2012 02:19 AM, Jamison Hope wrote:
> On Jun 2, 2012, at 6:46 PM, I wrote:
>
>> On a related note, occasionally the "no declaration seen for" warning is
>> just plain wrong:
>>
>> $ cat /tmp/test.lisp
>> (defvar foo 42)
>> (write foo) (newline)
> ...
>> $ cat /tmp/test.scm
>> (define x "hello")
>> (define (y) 1)
>> (write (y)) (newline)
>> (write x) (newline)
>> (write y) (newline)

For what it's for worth: defvar is closer to define-variable,
as it creates a dynamic variable.  However, using define-variable
doesn't cuause a warning in Scheme


-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/



More information about the Kawa mailing list