D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 10605 - Lambda grammar is not sufficient
Summary: Lambda grammar is not sufficient
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dlang.org (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: pull, spec
Depends on:
Blocks: 10233
  Show dependency treegraph
 
Reported: 2013-07-10 21:55 UTC by Kenji Hara
Modified: 2013-07-15 18:10 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Kenji Hara 2013-07-10 21:55:53 UTC
From: http://forum.dlang.org/post/hrjpqrzfcdyghcxbiiwt@forum.dlang.org

Today, compiler accepts following lambda code, but the syntax is not followed by language specification.

void main()
{
    auto fp = function (int a) => a;
    auto dg = delegate (int a) => a;
}
Comment 2 github-bugzilla 2013-07-15 17:59:55 UTC
Commits pushed to master at https://github.com/D-Programming-Language/dlang.org

https://github.com/D-Programming-Language/dlang.org/commit/f7e72cc9885eaab905810ef5afc448c5bf197292
fix Issue 10605 - Lambda grammar is not sufficient

Improve Lambda grammar and describe rewrite rule

https://github.com/D-Programming-Language/dlang.org/commit/c73a1f5cdd283a9bc741d8883defee9901c1234d
Merge pull request #351 from 9rnsr/fix_lambda

Issue 10605 - Lambda grammar is not sufficient