From: Mark H Weaver <mhw@netris.org>
To: psmith@gnu.org
Cc: guile-user@gnu.org
Subject: Re: Errors using Guile 2.0 vs. Guile 1.8
Date: Sun, 29 Jan 2012 20:16:12 -0500 [thread overview]
Message-ID: <8762fuj8gz.fsf@netris.org> (raw)
In-Reply-To: <1327882677.3401.37.camel@homebase> (Paul Smith's message of "Sun, 29 Jan 2012 19:17:57 -0500")
Paul Smith <psmith@gnu.org> writes:
> On Sun, 2012-01-29 at 17:57 -0500, Mark H Weaver wrote:
>> Replying to myself...
>>
>> > The relevant difference is that in Guile 1.8, (define foo ...) returns
>> > #<unspecified>, but in Guile 2 it returns the 'variable' object for
>> > 'foo'.
>>
>> I actually think that this qualifies as a bug in Guile, so please don't
>> depend on this behavior. Ideally, (define foo ...) should always return
>> #<unspecified>, and I hope we can fix that in 2.0.4.
>
> This definitely is the culprit. If I add a #f to the end of my
> definition, so the result is #f, then it works fine. Ouch. That is
> going to be a bummer, and no two ways about it.
>
> Was this change present in 2.0/2.0.1/2.0.2 as well?
Yes.
> Either I have to recommend everyone add #f for portability, or else I
> have to modify my guile-to-make string conversion to map Guile variable
> objects to empty strings, which could cause compatibility issues in the
> future if we decide to do something "interesting" with those objects.
I think it would almost certainly be fine to map variable objects to "",
because I can't imagine why anyone would ever want to return a variable
object to 'make'. I agree that it's not ideal, but I can't imagine it
ever being a problem in practice.
I'll respond to your other question (about error handling) later.
Mark
next prev parent reply other threads:[~2012-01-30 1:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-29 15:54 Errors using Guile 2.0 vs. Guile 1.8 Paul Smith
2012-01-29 21:18 ` Thien-Thi Nguyen
2012-01-29 21:51 ` Paul Smith
2012-01-29 22:26 ` Mark H Weaver
2012-01-29 22:57 ` Mark H Weaver
2012-01-30 0:17 ` Paul Smith
2012-01-30 1:16 ` Mark H Weaver [this message]
2012-01-30 1:42 ` Paul Smith
2012-01-30 11:06 ` Andy Wingo
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=8762fuj8gz.fsf@netris.org \
--to=mhw@netris.org \
--cc=guile-user@gnu.org \
--cc=psmith@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).