www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: Lambda syntax, etc

reply Kagamin <spam here.lot> writes:
Christopher Wright Wrote:

 D:
 void foo(void delegate(int) dg);
 
 C#:
 delegate void SomeName(int i);
 void foo(SomeName dg);
 
 Does C# 3 fix this? I've seen the new syntax for defining delegates, but 
 not for using them.

C# got anough rope for this :) http://msdn.microsoft.com/en-us/library/bb534303.aspx http://msdn.microsoft.com/en-us/library/bb534803.aspx
Feb 09 2009
parent Christopher Wright <dhasenan gmail.com> writes:
Kagamin wrote:
 Christopher Wright Wrote:
 
 D:
 void foo(void delegate(int) dg);

 C#:
 delegate void SomeName(int i);
 void foo(SomeName dg);

 Does C# 3 fix this? I've seen the new syntax for defining delegates, but 
 not for using them.

C# got anough rope for this :) http://msdn.microsoft.com/en-us/library/bb534303.aspx http://msdn.microsoft.com/en-us/library/bb534803.aspx

Eugh! Just eugh!
Feb 09 2009