Ah, simple solution to unittests inside templates
Andrej Mitrovic via Digitalmars-d
digitalmars-d at puremagic.com
Sun Sep 18 08:14:05 PDT 2016
On Sunday, 18 September 2016 at 12:02:47 UTC, Andrei Alexandrescu
wrote:
> That suggests the unittest shall be evaluated during
> compilation. -- Andrei
Nah, static is already quite overloaded and needs context to
understand what it does. For example module constructors.
Anyway compiler issues aside it's probably best to use working
solutions like yours for now, and later we can devise something
better via a DIP (one was posted here).
As the saying goes, don't let great be enemy of the good.
More information about the Digitalmars-d
mailing list