private with alias this
r_m_r
r_m_r at mailinator.com
Mon Dec 24 22:18:42 PST 2012
On 12/25/2012 10:53 AM, evilrat wrote:
> i'm not D expert, but isn't the first statement(b.bar_) evaluated to
> b.opCall(Foo.opCall)? so the first assert may be true in this case
i dunno. i'm no D expert either ;-)
BTW its interesting that while the following assertion fails at runtime:
assert(!__traits(compiles, b.bar_));
the assertion below executes without errors (as expected):
assert(!__traits(compiles, b.bar_ == 20));
regards,
r_m_r
More information about the Digitalmars-d-learn
mailing list