Named unittests and __traits(getModules)

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun May 19 22:41:52 UTC 2019


On 5/19/19 8:13 PM, Andre Pany wrote:
> On Sunday, 19 May 2019 at 18:56:33 UTC, Jacob Carlborg wrote:
>> I'm staring a new thread here on the topic of Name unittests because 
>> the existing one is getting too long [1].
>>
>> [...]
> 
> As far as i remember there was another suggestion of Andrei (in another 
> context). By importing a module B in module A, the module B can specify 
> coding which is executed and gets the module A as info.
> 
> This might could also solve this issue.

Yah, it's quite a universal pattern. It can be used as "import 
core.rtti; to add RTTI support for this module" etc.



More information about the Digitalmars-d mailing list