From the D Blog: The Amazing Compile-Time Metaprogramming State Machine
Dave P.
dave287091 at gmail.com
Sat May 9 16:43:17 UTC 2026
On Saturday, 9 May 2026 at 03:18:41 UTC, Meta wrote:
> On Friday, 8 May 2026 at 19:09:58 UTC, Dave P. wrote:
>> On Friday, 8 May 2026 at 05:05:07 UTC, Mike Parker wrote:
>>> [...]
>
> I wanted to include a shortlink from run.dlang.io, but that
> seems to be broken now and I can't create one. Here's a gist:
>
> https://gist.github.com/MetaLang/15c2c26e1b387a151401810ad936ad3a
>
> I lied a little bit in the article - `static assert` doesn't
> actually work in this case because opDispatch swallows errors,
> and instead you get a "no member for type..." message. That's
> really annoying, but it's more or less necessary because of how
> opDispatch works. I wish we had a better solution.
Thanks!
Shame about the error messages, makes it a lot less usable, type
errors turn into “no member for type..”.
More information about the Digitalmars-d-announce
mailing list