Can now use alias for collapsing multiple fields in nested structs
Timon Gehr
timon.gehr at gmx.ch
Tue Dec 31 16:13:47 UTC 2024
On 12/30/24 23:45, Derek Fawcus wrote:
> On Monday, 30 December 2024 at 22:22:27 UTC, Timon Gehr wrote:
>> On 12/29/24 22:08, Walter Bright wrote:
>>> On 12/29/2024 8:23 AM, Timon Gehr wrote:
>>>> Works in my frontend, does not work with DMD:
>>>
>>> Oh, how I wish you'd make PRs for DMD!
>>>
>>
>> Me too. I created that frontend back when I was a student with a lot
>> of spare time.
>>
>> Well, hopefully we can at least get the unpacking syntax over the
>> finish line soon. (Only thing that's really left to be done is fixing
>> some fail-compilation test failures.)
>
> So can one take it that your alternate front end is still a long way
> from being usable as an alternate for say LDC or GDC?
>
> Or is it closer?
It is relatively incomplete and does not compile with official DMD
releases that are newer than 2.060. This is because I used too much
metaprogramming. Rainer had a patch for DMD 2.073.0, but it broke other
projects.
https://github.com/tgehr/d-compiler
The test suite should give some indication what it can do:
https://github.com/tgehr/d-compiler/tree/master/test
It has Turing complete templates and has relatively fast CTFE using a
byte code interpreter, but is missing a lot of the bells and whistles.
Also, it is a frontend only so far, no backend code generator (other
than for the CTFE byte code).
More information about the Digitalmars-d
mailing list