August 24, 2018 Re: RFC: initial release of dtoh | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mihails | On 8/22/2018 4:01 AM, Mihails wrote:
> In my opinion, this functionality _should_ be part of compiler itself, similar to .di generation.
This is not a bad idea.
|
August 24, 2018 Re: RFC: initial release of dtoh | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mihails | On Wednesday, 22 August 2018 at 11:01:02 UTC, Mihails wrote:
> https://gitlab.com/mihails.strasuns/dtoh
>
> Tool to grab all `extern(C)` declarations in a D module and generate C header file based on it. Partially addresses https://issues.dlang.org/show_bug.cgi?id=9285 but is intended to be much more simple (no C++, no human-readable emphasis).
> [...]
This is all very nice. I agree that this kind of thing should be a part of the compiler, but I think it should be a compiler plugin. If dmd had compiler plugins, I think stuff like this and `dpp` would be much nicer to use.
|
August 24, 2018 Re: RFC: initial release of dtoh | ||||
---|---|---|---|---|
| ||||
Posted in reply to Uknown | On Friday, 24 August 2018 at 10:09:07 UTC, Uknown wrote: > This is all very nice. I agree that this kind of thing should be a part of the compiler, but I think it should be a compiler plugin. If dmd had compiler plugins, I think stuff like this and `dpp` would be much nicer to use. I agree. We also need compiler plugins for things like this: https://github.com/dlang/dmd/pull/6961 Mike |
August 25, 2018 Re: RFC: initial release of dtoh | ||||
---|---|---|---|---|
| ||||
Posted in reply to Uknown | On 2018-08-24 12:09, Uknown wrote: > This is all very nice. I agree that this kind of thing should be a part of the compiler, but I think it should be a compiler plugin. If dmd had compiler plugins, I think stuff like this and `dpp` would be much nicer to use. We have the front end available as a library, but not support for plugins. -- /Jacob Carlborg |
August 26, 2018 Re: RFC: initial release of dtoh | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On 26/08/2018 7:08 AM, Jacob Carlborg wrote:
> On 2018-08-24 12:09, Uknown wrote:
>
>> This is all very nice. I agree that this kind of thing should be a part of the compiler, but I think it should be a compiler plugin. If dmd had compiler plugins, I think stuff like this and `dpp` would be much nicer to use.
>
> We have the front end available as a library, but not support for plugins.
Even though it is available, you won't be using it.
Between memory leaks and not-reusable, it aren't an option.
|
August 26, 2018 Re: RFC: initial release of dtoh | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Fri, 24 Aug 2018 at 02:40, Walter Bright via Digitalmars-d-announce <digitalmars-d-announce@puremagic.com> wrote: > > On 8/22/2018 4:01 AM, Mihails wrote: > > In my opinion, this functionality _should_ be part of compiler itself, similar to .di generation. > > This is not a bad idea. This, please! |
Copyright © 1999-2021 by the D Language Foundation