[nem-bug] [Nemerle 0000538]: Lambda changed into delegate should not create functional value or delegate proxy

feedback at nemerle.org feedback at nemerle.org
Wed Dec 6 18:26:05 CET 2006


The following issue has been RESOLVED.
======================================================================
<http://nemerle.org/bugs/view.php?id=538> 
======================================================================
Reported By:                nazgul
Assigned To:                nazgul
======================================================================
Project:                    Nemerle
Issue ID:                   538
Category:                   Compiler
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     resolved
Resolution:                 fixed
Fixed in Version:           
======================================================================
Date Submitted:             09-25-2005 12:46 CEST
Last Modified:              12-06-2006 18:26 CET
======================================================================
Summary:                    Lambda changed into delegate should not create
functional value or delegate proxy
Description: 
Index: positive/delegate-no-proxy.n
===================================================================
--- positive/delegate-no-proxy.n        (wersja 5770)
+++ positive/delegate-no-proxy.n        (kopia robocza)
@@ -23,6 +23,10 @@
       this.boom1 += this.daa;
       this.boom1 ("event instance\n");
     }
+
+    NeedFoo (del : Foo) : void {
+      del ("NeedFoo");
+    }

     public static Run () : void
     {
@@ -33,6 +37,7 @@
       boom += doo;
       boom ("event\n");
       Test ().Do ();
+      Test ().NeedFoo (fun (x) { System.Console.WriteLine (x) });
       CheckReflection ();
     }

@@ -60,5 +65,6 @@
 blu
 event
 event instance
+NeedFoo
 END-OUTPUT
 */

======================================================================

----------------------------------------------------------------------
 nazgul - 09-25-05 15:10 
----------------------------------------------------------------------
This is now fixed (r5774) in case of lambdas without any closure variable
references.
Now the question is if we can optimize something in case of closure usage,
especially for only 'this' being closurised.

----------------------------------------------------------------------
 nazgul - 12-06-06 18:26 
----------------------------------------------------------------------
Creating delegate proxies were removed by Michal. I will open another bug
for optimizing closure creation.

Issue History
Date Modified  Username       Field                    Change              
======================================================================
09-25-05 12:46 nazgul         New Issue                                    
09-25-05 15:10 nazgul         Note Added: 0000979                          
10-03-05 19:34 nazgul         Status                   new => confirmed    
12-06-06 18:26 nazgul         Status                   confirmed => resolved
12-06-06 18:26 nazgul         Resolution               open => fixed       
12-06-06 18:26 nazgul         Assigned To               => nazgul          
12-06-06 18:26 nazgul         Note Added: 0001562                          
======================================================================




More information about the bugs mailing list