[Issue 7357] New: Allow `function f = <lambda>` and `delegate d =	<lambda>` syntax
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Jan 24 02:08:27 PST 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=7357
           Summary: Allow `function f = <lambda>` and `delegate d =
                    <lambda>` syntax
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: verylonglogin.reg at gmail.com
--- Comment #0 from Denis <verylonglogin.reg at gmail.com> 2012-01-24 13:08:17 MSK ---
Now we have the following syntax to specify is lambda a function or a delegate:
---
auto f = function(int i) => i;
auto d = delegate(int i) => i;
---
Maybe this will be useful too (it looks consistent with const, immutable,
etc.):
---
function f = (int i) => i;
delegate d = (int i) => i;
---
-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
    
    
More information about the Digitalmars-d-bugs
mailing list