[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
with-fluids bug?
From: |
Stefan Israelsson Tampe |
Subject: |
with-fluids bug? |
Date: |
Sun, 26 Sep 2010 22:44:31 +0200 |
User-agent: |
KMail/1.13.5 (Linux/2.6.34.7-0.2-desktop; KDE/4.4.4; x86_64; ; ) |
Hi,
Here follows an issue with resent head and a potential first start
of a solution.
Problem:
(define a (make-fluid))
(with-fluids ((a 1)) 2) ; returns 2
(pk (with-fluids ((a 1)) 2)) ; barfs at trying to execute function 1
The issue:
the wind-fluids instruction reads previouslyu pushed fluids and vals
and set their value acordingly. But does just do a read and no pop!
by simply adding sp -= 2*n, the code above works fine.
Now, I'm not an expert at coding vm-instruction, there might be more to
say here but a patch follows this mail.
Regards
Stefan
with-dynwind-vm.patch
Description: Text Data
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- with-fluids bug?,
Stefan Israelsson Tampe <=