Simple c header => Dlang constants using mixins in compile time

Igor Shirkalin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Jun 18 12:32:30 PDT 2017


On Sunday, 18 June 2017 at 16:02:38 UTC, Seb wrote:
> On Saturday, 17 June 2017 at 11:27:40 UTC, Igor Shirkalin wrote:
>> On Saturday, 17 June 2017 at 11:23:52 UTC, Cym13 wrote:
>>> On Saturday, 17 June 2017 at 11:20:53 UTC, Igor Shirkalin 
>>> wrote:
>>>> [...]
>>>
>>> I'm sure others will have cleaner solutions as as a quick 
>>> hack you can read the file at compile time, modify it, and 
>>> compile the D code on the go:
>>>
>>> [...]
>>
>> Thanks a lot! That what I was looking for.
>
> FWIW there are tools for this as well,e.g.
>
> https://github.com/jacob-carlborg/dstep

Thank you. I try to do it myself for learning purposes.


More information about the Digitalmars-d-learn mailing list