[Issue 4954] New: Clarify documentation of foreach with delegates.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 28 14:47:52 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4954
Summary: Clarify documentation of foreach with delegates.
Product: D
Version: D2
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: websites
AssignedTo: nobody at puremagic.com
ReportedBy: ah08010-d at yahoo.com
--- Comment #0 from Austin Hastings <ah08010-d at yahoo.com> 2010-09-28 14:47:38 PDT ---
The foreach/opApply docs acknowledge that the Aggregate in a foreach statement
might be a delegate, but that section needs to be fleshed out with more text
and/or an example or two:
~~~~~~~~~~
Foreach over Delegates
If Aggregate is a delegate, the type signature of the delegate is of the same
as for opApply. This enables many different named looping strategies to coexist
in the same class or struct.
~~~~~~~~~~
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list