Postmortem: Template unittests are bad & you shouldn't catch Error

H. S. Teoh hsteoh at quickfur.ath.cx
Thu Oct 22 16:31:30 UTC 2020


On Thu, Oct 22, 2020 at 04:19:30PM +0000, Meta via Digitalmars-d wrote:
> On Thursday, 22 October 2020 at 04:04:26 UTC, Mathias LANG wrote:
> <snip>
> It just occurred to me that putting `version(none)` on those tests
> *might* disable them while also ensuring that the tests show up in the
> documentation (which was the idea behind putting them in there), but
> I'm not sure about that. I know that something like `static if (false)
> { declarations... }` will omit them.

I'm pretty sure ddocs on version(none) symbols are skipped. So this
won't work.


T

-- 
"If you're arguing, you're losing." -- Mike Thomas


More information about the Digitalmars-d mailing list