Lazy evaluation
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Thu Jun 28 01:15:30 PDT 2007
Regan Heath wrote:
> Is such a thing possible in D, function literals. You might need to explicitly say 'function' in there somewhere. I've not used these a heck of a lot so I'm not sure.
Yes, function literals are possible. And indeed, they have 'function' in
them. In fact, put 'function' in front of a delegate literal (and remove
the optional 'delegate' if present) and you have a function literal.
Details: http://www.digitalmars.com/d/expression.html#FunctionLiteral
(or the equivalent 1.0 page)
More information about the Digitalmars-d
mailing list