opCmp and unittest as a nested function

bearophile bearophileHUGS at lycos.com
Wed Apr 9 03:13:14 PDT 2014


Alexandr Druzhinin:

> Thank you! It works. But where can I read about this issue?

Reading about this "issue" is not good. What you can read about 
is how unittests are implemented in D (as functions) and what's 
the difference between static structs and nonstatic ones when 
they are defined inside a function.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list