Evaluating definitions from another thread

Per Bothner per@bothner.com
Fri May 10 20:19:17 GMT 2024



On 5/10/24 1:15 PM, Panicz Maciej Godek via Kawa wrote:
> Hi,
> 
> I've noticed that when I call
> 
> (future (eval '(define x 5)))
> 
> then the variable x remains unbound after the execution
> - even though when I invoke (eval '(define x 5)), x gets bound to 5 as
> expected.

This might work:

(define x #f)
(future (eval '(set! x 5)))
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/


More information about the Kawa mailing list