Is this a good way to do lazy evaluation?
Ali Çehreli
acehreli at yahoo.com
Tue Feb 23 21:16:35 UTC 2021
On 2/22/21 2:00 PM, Jack wrote:
> C defValue() { return C.a; }
Yes, putting the expression in a function is the way I know for lazy
evaluation.
Ali
More information about the Digitalmars-d-learn
mailing list