DMD 0.166 release

Walter Bright newshound at digitalmars.com
Thu Aug 31 11:56:52 PDT 2006


Russ Lewis wrote:
> Walter Bright wrote:
>> The implicit conversion to delegate just broke too much. Instead, I'm 
>> trying out Tom S.'s suggestion of using a 'lazy' parameter storage class.
>>
>> http://www.digitalmars.com/d/changelog.html
> 
> 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.



More information about the Digitalmars-d-announce mailing list