[Issue 21218] dtoh: protection attributes should be emitted to headers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 3 21:14:55 UTC 2020


https://issues.dlang.org/show_bug.cgi?id=21218

Seb <greeenify at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|dtoh: protected attribute   |dtoh: protection attributes
                   |should be emitted to        |should be emitted to
                   |headers                     |headers

--- Comment #1 from Seb <greeenify at gmail.com> ---
This also applies to `private` and likely all other protection attributes:

```
extern(C++) struct Foo {
  private int a = 1;
}
```

generates currently:

```
struct Foo
{
    int32_t a;
    Foo() {}
};
```

--


More information about the Digitalmars-d-bugs mailing list