2 Nov 2009 04:12
Re: mt question/problem
Sam Steingold <sds <at> gnu.org>
2009-11-02 03:12:30 GMT
2009-11-02 03:12:30 GMT
> * Don Cohen <qba-fbheprsbetr-kkm <at> vfvf.pf3-vap.pbz> [2009-11-01 17:41:30 -0800]: > > I may have asked something like this before, but ... > > (mt:make-thread > (lambda () > (format t "testing: ~a" > (multiple-value-list (ignore-errors (list *print-pretty* c))))) > :name (format nil "foo" ) > :initial-bindings > (print (loop for x on > (list 'c 'c) > by #'cddr collect > (cons (car x) (list 'quote (cadr x)))))) > > ((C QUOTE C)) > #<THREAD "foo"> > Break 2 [11]> testing: > (NIL > :LAMBDA: variable C has no value > ) > > Why is the variable C unbound in the thread when the initial bindings > list seems to contain a value for it? because initial-bindings are for global specials: [1]> (defparameter c 23) C [2]> (mt:make-thread(Continue reading)
RSS Feed