opCmp and unittest as a nested function

Alexandr Druzhinin drug2004 at bk.ru
Wed Apr 9 03:39:46 PDT 2014


09.04.2014 14:13, bearophile пишет:
> 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
I guess I should read how tepmlates work. Tween needs access to 
unittest.Point2D to be instanciated but Point2D is local?


More information about the Digitalmars-d-learn mailing list