Thread overview
[Issue 5050] No way to declare delegates with ref return
Dec 08, 2014
Walter Bright
Apr 05
Dlang Bot
Apr 07
Dlang Bot
December 08, 2014
https://issues.dlang.org/show_bug.cgi?id=5050

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
You can do it with an alias:

    alias ref int delegate(ref int) dg_t;
    dg_t r = ...;

--
April 05
https://issues.dlang.org/show_bug.cgi?id=5050

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@BorisCarvajal updated dlang/dmd pull request #9558 "Fixes issues 16271, 18825, 8065, 5050 - Allow function literals return by reference" fixing this issue:

- Fixes issues 16271, 18825, 8065, 5050 - Allow function literals return by reference

https://github.com/dlang/dmd/pull/9558

--
April 07
https://issues.dlang.org/show_bug.cgi?id=5050

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #9558 "Fixes issues 16271, 18825, 8065, 5050 - Allow function literals return by reference" was merged into master:

- 60251b8f0e191a8f0f5142ddd2d3807d0e06c58a by Boris Carvajal:
  Fixes issues 16271, 18825, 8065, 5050 - Allow function literals return by
reference

https://github.com/dlang/dmd/pull/9558

--