Thread overview |
---|
January 07, 2007 [Issue 809] New: lazy argument convert to delegate | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=809 Summary: lazy argument convert to delegate Product: D Version: 1.00 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: cpunion@gmail.com void test(lazy int dg){ int delegate() dg_ = dg; } Compile error: $ dmd -c t.d t.d(2): Error: cannot implicitly convert expression ((dg)()) of type int to int delegate() -- |
February 02, 2007 [Issue 809] lazy argument can't convert to delegate | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=809 bugzilla@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement Status|NEW |RESOLVED Resolution| |INVALID ------- Comment #1 from bugzilla@digitalmars.com 2007-02-02 03:21 ------- I don't really think it should (and it isn't documented to work). I suspect enhancing D to make this work would lead to problems down the road. I'd rather leave it as an error. -- |
March 08, 2007 [Issue 809] lazy argument can't convert to delegate | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=809 smjg@iname.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |smjg@iname.com ------- Comment #2 from smjg@iname.com 2007-03-08 17:04 ------- How about defining &dg to extract the delegate? -- |
December 08, 2008 [Issue 809] Should be possible to convert lazy argument to delegate | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=809 smjg@iname.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | Summary|lazy argument can't convert |Should be possible to |to delegate |convert lazy argument to | |delegate ------- Comment #3 from smjg@iname.com 2008-12-08 11:00 ------- Reopening per no response to my last comment. -- |
Copyright © 1999-2021 by the D Language Foundation