opCmp and unittest as a nested function

Alexandr Druzhinin drug2004 at bk.ru
Wed Apr 9 03:01:32 PDT 2014


09.04.2014 13:45, bearophile пишет:
> Alexandr Druzhinin:
>
>> http://dpaste.dzfl.pl/f7364d416cb2
>> Error appeared when I defined opCmp and now I can't understand what's
>> the reason of the error. Why does tween need access to unittest?
>
> Try to use "static struct" instead of a "struct".
>
> Bye,
> bearophile
Thank you! It works. But where can I read about this issue?


More information about the Digitalmars-d-learn mailing list