Lazy functions, lazy arrays
Dennis Ritchie via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Mar 20 03:02:26 PDT 2015
For example,
lazy int sum(int a = 3, int b = 5) {
return a + b;
}
That is, if the function is not invoked, it should not be
calculated at compile time.
More information about the Digitalmars-d-learn
mailing list