Scoped Operator Overloading
Carl
carl at email.com
Sat Jun 1 23:59:09 PDT 2013
From http://dlang.org/attribute.html
"Private means that only members of the enclosing class can
access the member, or members and functions in the same module as
the enclosing class."
It appears my original code works, opApply being private.
However, I was doing my tests with a unittest block in the same
module. Do people commonly use a designated module for these
types of unittests? Or does D have a way of isolating a unittest
from the module it is declared in?
More information about the Digitalmars-d-learn
mailing list