newCTFE Status June 2020
Stefan Koch
uplink.coder at googlemail.com
Mon Jun 8 15:30:26 UTC 2020
Hi Guys,
I've ported newCTFE to the latest "stable" release of DMD 2.092.0.
While trying to test newCTFE on some std.regex code to see if it
would make a difference there, I noticed that default
construction of classes is broken.
This is because dmd is a little funky and does not generate a
default construction-function for you.
Rather it leaves you to build your own.
(As far as I can see anyways.)
Which I then documented on a new wiki page were all of my more
surprising discoveries about dmd will land.
[https://wiki.dlang.org/Random_DMD_Facts]
This promoted me to clean up my assignment-to-field code which
was duplicated for structs and classes.
More such cleanup passes will happen and hopefully bring the
code-size of newCTFE down considerably.
More information about the Digitalmars-d
mailing list