Retrieve the return type of the current function

Adam D. Ruppe destructionator at gmail.com
Tue May 5 16:41:06 UTC 2020


On Tuesday, 5 May 2020 at 16:36:48 UTC, learner wrote:
> I mean, without using the function name in the body, like 
> ReturnType!foo ?

even easier:

typeof(return)


More information about the Digitalmars-d-learn mailing list