{OT} Youtube video: finding an eliusive bug with CTFE
Meta via Digitalmars-d
digitalmars-d at puremagic.com
Thu Apr 13 10:36:00 PDT 2017
On Thursday, 13 April 2017 at 10:29:06 UTC, Stefan Koch wrote:
> Hi Guys,
>
> while building newCTFE is ran into a really nasty bug.
> Which took me hours to find, but with CTFE and __traits it is
> preventable and will never haunt me again.
> Because I was so happy that I could prevent this bug;
> I want to share it with the whole world:
>
> https://www.youtube.com/watch?v=9seMTaNmQDI
>
> Cheers,
> Stefan
Great video. I also use static assert a lot for checking stuff
like this. Combined with CTFE and D's introspection capabilities
it's extremely useful if you need to, for example, ensure that
the members of two structs are in the same order, or that their
members stay in sync.
More information about the Digitalmars-d
mailing list