each & opApply

Ali Çehreli acehreli at yahoo.com
Wed May 23 13:53:43 UTC 2018

On 05/23/2018 06:49 AM, Steven Schveighoffer wrote:

> Apparently, but that's not very good. IMO, it should use the same rules 
> as foreach. In which case, BOTH lines should fail to compile.

> -Steve

I think this is a compiler bug (limitation), which I think has been 
reported already (or similar ones where definition order matters). The 
outcome is different when one reorders the opCall definitions. It looks 
like only the first one is successful.


More information about the Digitalmars-d-learn mailing list