[GSoC] Header Generation for C/C++

Manu turkeyman at gmail.com
Wed Jul 17 17:43:21 UTC 2019


On Wed, Jul 17, 2019 at 6:40 AM Eduard Staniloiu via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
>
> I want to give a heads-up to everyone for the following issue
> (this had me scratching my head for a couple of days unit I
> caught it):
>
> The current code doesn't take into account `enum BaseType`s, ex:
> ```
> enum TOK : ubyte { /* ... */ }
>
> class Expression
> {
>    TOK op;
>    /* ... */
> }
> ```
>
> The `enum TOK` above gets generated as
> ```
> enum TOK { /* ... */ }
> ```

So... use:

enum class TOK : unsigned char { /* */ };

??


More information about the Digitalmars-d mailing list