[Issue 16279] New: foreach and opApply cannot be nogc

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jul 13 22:32:04 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=16279

          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 at puremagic.com
          Reporter: TeddyBear12311 at 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

--


More information about the Digitalmars-d-bugs mailing list