[Issue 21137] Can't get the UDA given to the lambda expression parameters

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 10 10:50:41 UTC 2020


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

SHOO <zan77137 at nifty.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |---

--- Comment #2 from SHOO <zan77137 at nifty.com> ---
(In reply to Simen Kjaeraas from comment #1)
> 
> *** This issue has been marked as a duplicate of issue 20246 ***

The subject of this issue is not about checking that template functions can be
called, as discussed in issue 20246.
This issue is about being able to retrieve UDAs given to parameters of lambda
and function literals (or template functions).
Since they cannot be evaluated by `isCallable!func`, and the parameter
information by `Paramters!func` cannot be retrieved, an alternative method
should be provided.
This issue is not solved by issue 20246, although it is similar in that it is
indeed a problem caused by not being treated as a function.

--


More information about the Digitalmars-d-bugs mailing list