DMD 0.166 release

Russ Lewis spamhole-2001-07-16 at deming-os.org
Thu Aug 31 11:49:33 PDT 2006


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);
   }



More information about the Digitalmars-d-announce mailing list