isRef, isLazy, isOut
Kasumi Hanazuki
k.hanazuki at gmail.com
Sun Dec 20 20:30:44 PST 2009
(2009/12/21 4:43), Andrei Alexandrescu wrote:
> Speaking of isLazy - any fresh ideas on dissing lazy? FWIW we can
> replace it with the conversion of expressions to delegates. The
> resulting situation is liable to a few ambiguities but is much better
> than lazy.
Nobody seemed to mention in the last thread, but D already has the
implicit expression-to-delegate conversion in the type-safe variadic
parameters. (only available in the last part of parameters though...)
Can we merge lazy with it?
----
void f(void delegate()[1] gs...) {
gs[0]();
gs[0]();
}
void g() {
writeln(42);
}
void main() {
f(g());
}
More information about the Digitalmars-d
mailing list