www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16279] New: foreach and opApply cannot be nogc


          Issue ID: 16279
           Summary: foreach and opApply cannot be nogc
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: TeddyBear12311 gmail.com

If one tries to override onApply in a nogc setting, they cannot because marking
the delegate nogc prevents foreach from working. One can't have both delegate
types as a stranger error happens.

This seems to be similar to https://issues.dlang.org/show_bug.cgi?id=15624

Jul 13 2016