How to "Inherit" the attributes from a given callable argument?

Jonathan M Davis newsgroup.d at jmdavisprog.com
Thu Jun 13 12:40:10 UTC 2019


On Thursday, June 13, 2019 3:49:04 AM MDT Jacob Carlborg via Digitalmars-d-
learn wrote:
> On 2019-06-12 22:42, Mek101 wrote:
> > I didn't know it applied to templates other than lambdas.
> >
> > Thank you for your explanation.
>
> It applies to templates, lambdas (which basically are templates) and
> nested functions.

It also now applies to auto return functions, though that's a more recent
change.

- Jonathan M Davis





More information about the Digitalmars-d-learn mailing list