DIP 1010--Static foreach--Accepted

Timon Gehr via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Wed Jul 19 07:25:32 PDT 2017


On 18.07.2017 00:44, Andrei Alexandrescu wrote:
> On 7/17/17 8:38 AM, Steven Schveighoffer wrote:
>> What is the resolution of how break statements affect static 
>> foreach/foreach?
> 
> We initially allowed break and continue to refer to the enclosing 
> statement, but upon further consideration we will make it an error. This 
> allows us to collect more experience with the feature and leaves us the 
> option to permit break/continue later on. I have contacted Timon about 
> the matter. Thanks! -- Andrei

https://github.com/dlang/DIPs/pull/87
https://github.com/dlang/dmd/pull/7009


More information about the Digitalmars-d-announce mailing list