From: Andy Wingo <wingo@pobox.com>
To: Arne Babenhauserheide <arne_bab@web.de>
Cc: guile-devel <guile-devel@gnu.org>
Subject: Re: guile 2.1.7 skips while condition
Date: Mon, 13 Mar 2017 21:35:37 +0100 [thread overview]
Message-ID: <87k27srk2u.fsf@pobox.com> (raw)
In-Reply-To: <87y3w9drq8.fsf@web.de> (Arne Babenhauserheide's message of "Mon, 13 Mar 2017 18:09:10 +0100")
On Mon 13 Mar 2017 18:09, Arne Babenhauserheide <arne_bab@web.de> writes:
> Arne Babenhauserheide writes:
>
>> Andy Wingo <wingo@pobox.com> writes:
>>
>>> On Thu 09 Mar 2017 15:31, Arne Babenhauserheide <arne_bab@web.de> writes:
>>>
>>>> However I did not manage to reproduce it in a small example, therefore I
>>>> pastebinned the whole file:
>>>>
>>>> script: https://paste.pound-python.org/show/0IlalBrxVH7KHjW83ayu/
>>>> input: https://paste.pound-python.org/show/ZxQsazFfwVrvz9f4SU4f/
>>>
>>> Sounds like you found a nice bug. This is a big script though; have you
>>> tried incrementally removing parts of it to winnow it down? That is
>>> definitely the first step to fixing the bug :)
>>
>> I tried building a minimal working example, but not removing stuff bit
>> by bit (due to time constraints on free creative time). I would hope
>> that it shouldn’t be too complex, but cannot promise I’d get it done
>> within the next few weeks.
>
> Here’s a shortened version:
Or even smaller:
(define (t)
(let ((n #t))
(let lp ()
(when n
(call-with-prompt 'foo
(lambda ()
(set! n #f)
(abort-to-prompt 'foo))
(lambda (k)
(lp)))))))
Guile is thinking that the n is always true because it doesn't
understand that aborting back to the prompt means that possible all
mutable objects are mutated.
Andy
next prev parent reply other threads:[~2017-03-13 20:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-09 14:31 guile 2.1.7 skips while condition Arne Babenhauserheide
2017-03-10 11:14 ` Andy Wingo
2017-03-11 16:38 ` Arne Babenhauserheide
2017-03-13 17:09 ` Arne Babenhauserheide
2017-03-13 19:49 ` Andy Wingo
2017-03-13 20:35 ` Andy Wingo [this message]
2017-03-13 21:20 ` Andy Wingo
2017-03-14 16:51 ` Arne Babenhauserheide
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k27srk2u.fsf@pobox.com \
--to=wingo@pobox.com \
--cc=arne_bab@web.de \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).