[Issue 21150] New: The specification is unclear (static foreach)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 12 22:26:32 UTC 2020


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

          Issue ID: 21150
           Summary: The specification is unclear (static foreach)
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dlang.org
          Assignee: nobody at puremagic.com
          Reporter: porton at narod.ru

24.6.2 "static foreach supports multiple variables in cases where the
corresponding foreach statement supports them. (In this case, static foreach
generates a compile-time sequence of tuples, and the tuples are subsequently
unpacked during iteration)."

I do not understand these phrases. Please rewrite this specification fragment
to be understandable.

What does it mean "foreach statement supports multiple variables"?

--


More information about the Digitalmars-d-bugs mailing list