delegete with foreach
Lutger
lutger.blijdestijn at gmail.com
Thu Jan 11 08:08:53 PST 2007
Frits van Bommel wrote:
> Delegate literals are also known as "anonymous delegates". They don't
> have names :).
>
> See http://www.digitalmars.com/d/expression.html#FunctionLiteral
Oops I misunderstood the question, Frits van Bommel is right of course.
You can toss dg around like a regular variable, it doesn't really have a
name.
auto whatever = dg;
You can do the same with function literals.
More information about the Digitalmars-d-learn
mailing list