Why foreach is not nothrow even for a simple associative array?
Cheng Wei
rivercheng at gmail.com
Thu Oct 13 03:46:49 PDT 2011
Yeah, the problem could be solved if _aaApply2 was a template instead of
a function.
Alternatively, maybe the compiler can skip the purity/throwbility check
for __aaApply2 and directly check the statements inside. That means to
treat the compiler generated function __aaApply2 differently than the
opApply provided by users.
More information about the Digitalmars-d-learn
mailing list