[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Re: Patchset related to array functions
From: |
Andy Wingo |
Subject: |
Re: [PATCH] Re: Patchset related to array functions |
Date: |
Sat, 16 Jul 2016 11:07:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
On Fri 15 Jul 2016 12:52, Chris Vine <address@hidden> writes:
> On Thu, 14 Jul 2016 17:41:45 +0200
> Daniel Llorens <address@hidden> wrote:
> [snip]
>> I think we'd want C89/C90 users to still be able to #include
>> <libguile.h>. Dunno.
>
> libguile.h can also at present be included in C++89/03/11/14 code by
> design - all the necessary "extern C" stuff is there. I would hope
> that would continue, but some C99 things, such as variable length
> arrays, designated initializers, the _Complex type, the restrict
> qualifier and compound literals (except in C++11/14) are not available.
>
> There is no problem with using these in libguile implementation
> (*.c) code, but including them in headers will generally stop the
> headers being usable in C++ code. Having said that, g++ happens to
> accept some of these in C++ code as an extension.
Good points, all. Thanks for this list Chris. I don't think we need
anything in your list at present. I would like stdint.h though :)
Andy