[GSoC] Header Generation for C/C++

Iain Buclaw ibuclaw at gdcproject.org
Thu Jul 18 04:41:16 UTC 2019


On Wed, 17 Jul 2019 at 20:01, Manu via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> On Wed, Jul 17, 2019 at 7:29 AM Iain Buclaw via Digitalmars-d
> <digitalmars-d at puremagic.com> wrote:
> >
> > On Wed, 17 Jul 2019 at 15:40, Eduard Staniloiu via Digitalmars-d
> > <digitalmars-d at puremagic.com> wrote:
> > >
> > >
> > > I have the following question: Can we use C++11 or would that
> > > break GDC / LDC? With C++11 we could use `enum class` which would
> > > solve this nicely. The issue with `enum class` is that it will
> > > break code since not the fields need to be prefixed with the enum
> > > name.
> > >
> > > But still, what do you think? What are the pros and cons of
> > > supporting/using C++11?
> > >
> >
> > No you cannot use C++11, yes it will break GDC bootstrap.
>
> This needs to be optional. I can't NOT use C++11 for instance...
> We could read the --extern-std flag to drive the output perhaps?

I assumed the question was only about dmd headers, and not the tool itself.

Naturally, there should be a way to configure the style or language
standards you want the code to be outputted in (and this is another
reason why I think a standalone app is better).

-- 
Iain


More information about the Digitalmars-d mailing list