From: Andy Wingo <wingo@pobox.com>
To: Ken Raeburn <raeburn@raeburn.org>
Cc: guile-user@gnu.org
Subject: Re: Now that SCM type is a union...
Date: Sun, 14 Aug 2011 22:10:56 +0200 [thread overview]
Message-ID: <87liuvg3e7.fsf@pobox.com> (raw)
In-Reply-To: <0F01A791-AEE9-49D5-BA9D-762C7DCF879B@raeburn.org> (Ken Raeburn's message of "Sat, 13 Aug 2011 18:00:39 -0400")
Hi Ken,
On Sun 14 Aug 2011 00:00, Ken Raeburn <raeburn@raeburn.org> writes:
> * We should expect some Guile applications to be in C++. What
> versions of the C++ spec should Guile support?
Dunno. What do other languages have to do with Guile's C interface?
Specifically what does C++ have to do with this? (Serious question.)
> * Shouldn't there be testing to catch this? (C89 mode, C99 mode,
> different C++ specs, enabling various compiler warnings -- for
> whatever compiler is in use -- and make them fatal, any interesting
> ways one might want to use libguile in an application that might
> stress compatibility issues.) I mean automated testing, not just
> Cedric. :-)
Perhaps :) Interested volunteers are welcome to set this up :)
>> I will take a look at this issue soonish, but your help (and Cedric's)
>> in debugging it is most appreciated :) I would love to keep the union
>> as the "normal" SCM definition, but that might not be possible.
>
> Regardless of the validity, there are popular compilers out there now
> which do not support this, when used in modes people may need or want
> to use. The installed headers need to adhere to higher standards in
> terms of portability problems and warnings than the library source,
> where we can dictate some of the compiler options.
Agreed. And AFAIK there are some ABI differences for returning unions
versus returning uintptr_t, so unfortunately it can't be a question of
ifdefs in Guile's C interface, it seems. I'll work on this, but if you
have any suggestions as to the proper fix, they are most welcome.
Andy
--
http://wingolog.org/
next prev parent reply other threads:[~2011-08-14 20:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-12 12:44 Now that SCM type is a union rixed
2011-08-13 5:26 ` Ken Raeburn
2011-08-13 10:40 ` rixed
2011-08-13 12:23 ` Andy Wingo
2011-08-13 22:00 ` Ken Raeburn
2011-08-14 20:10 ` Andy Wingo [this message]
2011-08-15 2:04 ` Ken Raeburn
2011-08-15 2:21 ` Ken Raeburn
2011-09-15 19:54 ` 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=87liuvg3e7.fsf@pobox.com \
--to=wingo@pobox.com \
--cc=guile-user@gnu.org \
--cc=raeburn@raeburn.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).