Why foreach is not nothrow even for a simple associative array?

bearophile bearophileHUGS at lycos.com
Thu Oct 13 03:16:59 PDT 2011


Cheng Wei:

> The problem is that if we tag _aaApply2 as nothrow, then can we still
> put throwable codes in the body of foreach?

I see. Now in D there is purity/"throwbility" inference for templates. Is _aaApply2 allowed to become a template?

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list