SpecificationLazy Parameters
Sourcedelegatize.d
Documentationhttps://dlang.org/phobos/dmd_delegatize.html
toDelegate(Expressione, Typet, Scope*sc);Expressione | argument to convert to a delegate |
Typet | the type to be returned by the delegate |
Scope*sc | context |
lambdaCheckForNestedRef(Expressione, Scope*sc);Scope*sc | context |
Expressione | expression to check |
ensureStaticLinkTo(Dsymbols, Dsymbolp);s is nested within contextp, meaning itp is reachable at runtime by walking the static links. If any of the intervening contexts are function literals, make sure they are delegates.Dsymbols | inner context |
Dsymbolp | outer context |
Referencesfor static links seehttps://en.wikipedia.org/wiki/Call_stack#Functions_of_the_call_stack