Lazy evaluation

Peter Alexander peter.alexander.au at gmail.com
Tue Nov 22 15:46:38 PST 2011


On 22/11/11 11:19 PM, Timon Gehr wrote:
> On 11/23/2011 12:06 AM, Peter Alexander wrote:
>> On 22/11/11 10:00 PM, Manu wrote:
>>> So, I've been thinking about this const/lazy evaluation problem again.
>>>
>>> I think most of the complaints about D's const is due to the use of lazy
>>> evaluation for optimisation. I started wondering if there was room for a
>>> 'lazy' keyword.
>>
>> There already is one :-)
>>
>> http://d-programming-language.org/lazy-evaluation.html
>>
>
> That is not lazy evaluation. It is call by name.

True.


More information about the Digitalmars-d mailing list