[nem-bug] [Nemerle 0000850]: Allow to omit anonymous method
signature (as in C#)
feedback at nemerle.org
feedback at nemerle.org
Mon Feb 5 16:40:37 CET 2007
The following issue has been REOPENED.
======================================================================
<http://nemerle.org/bugs/view.php?id=850>
======================================================================
Reported By: nikov
Assigned To: nazgul
======================================================================
Project: Nemerle
Issue ID: 850
Category: Language Feature
Reproducibility: always
Severity: feature
Priority: normal
Status: feedback
======================================================================
Date Submitted: 01-28-2007 18:09 CET
Last Modified: 02-05-2007 16:40 CET
======================================================================
Summary: Allow to omit anonymous method signature (as in C#)
Description:
Allow to omit anonymous method signature if there are no ref/out
parameters, and no parameter is used in method body (as in C#).
Foo += fun { Console.WriteLine("here") }
instead of
Foo += fun(_, _) { Console.WriteLine("here") }
See http://comments.gmane.org/gmane.comp.lang.nemerle.devel/2496
======================================================================
----------------------------------------------------------------------
nazgul - 02-04-07 11:42
----------------------------------------------------------------------
Fixed on trunk (r7375)
----------------------------------------------------------------------
nikov - 02-05-07 16:40
----------------------------------------------------------------------
Signature inference works wrong.
module A
{
event E : System.EventHandler;
Foo() : void
{
E += fun(_, _) {}; // OK
E += fun {} // Wrong
}
}
Issue History
Date Modified Username Field Change
======================================================================
01-28-07 18:09 nikov New Issue
02-04-07 11:42 nazgul Status new => resolved
02-04-07 11:42 nazgul Resolution open => fixed
02-04-07 11:42 nazgul Assigned To => nazgul
02-04-07 11:42 nazgul Note Added: 0001672
02-04-07 11:42 nazgul Description Updated
02-05-07 16:40 nikov Status resolved => feedback
02-05-07 16:40 nikov Resolution fixed => reopened
02-05-07 16:40 nikov Note Added: 0001683
======================================================================
More information about the bugs
mailing list