[Issue 13771] any language support capture acquire type?

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 16 14:23:27 UTC 2022


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |WONTFIX

--- Comment #1 from RazvanN <razvan.nitu1305 at gmail.com> ---
No, D does not support such features because the return type is always deduced
from the function body, not from the surrounding context (there are some
exceptions with regards to lambda functions). This is a major change that does
really bring too much benefit.

--


More information about the Digitalmars-d-bugs mailing list