Lazy evaluation of function arguments in D

Timon Gehr timon.gehr at gmx.ch
Sun May 20 07:17:31 PDT 2012


On 05/20/2012 04:09 PM, deadalnix wrote:
> Le 20/05/2012 01:03, Walter Bright a écrit :
>> http://www.reddit.com/r/programming/comments/tui75/lazy_evaluation_of_function_arguments_in_d/
>>
>>
>
> This feature break pure/@safe/nothrow .
>

It does not break them.

lazy currently makes it impossible to have some guarantees that might be 
desirable to have inside the function with the lazy parameter, but the 
call site has all the information needed in order to establish them again.

> I don't think this is a good idea to promote it right now, as it WILL
> have to change.



More information about the Digitalmars-d mailing list