DMD 0.166 release

Russ Lewis spamhole-2001-07-16 at deming-os.org
Thu Aug 31 12:09:14 PDT 2006


Walter Bright wrote:
> Russ Lewis wrote:
>> Is there any reason to not use "lazy" as a keyword to modify the
>> expression, rather than the parameter?
>>
>>   void foo(int delegate() dg) {...}
>>   void bar(int x,int y) {
>>     foo(lazy x+y);
>>   }
> 
> One reason is lazy arguments and non-lazy arguments cannot be passed to 
> the same function.

One of us is missing something.  I'm not sure who :)  Can you expand on 
your response here?



More information about the Digitalmars-d-announce mailing list