[Issue 2753] Cannot declare pointer to function returning ref

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Oct 19 10:00:20 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=2753

Nick Treleaven <nick at geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick at geany.org

--- Comment #17 from Nick Treleaven <nick at geany.org> ---
(In reply to anonymous4 from comment #2)
> int goo(int function() ref foo); //return byref function

Allowing that would seem to be a simple fix to the problem, except now it would
be confusing with the `return ref` attribute. The latter didn't exist when you
wrote that though.

--


More information about the Digitalmars-d-bugs mailing list