Given an object, how to call an alias to a member function on it?

Adam D Ruppe destructionator at gmail.com
Wed May 3 11:38:46 UTC 2023


On Tuesday, 2 May 2023 at 13:57:23 UTC, Steven Schveighoffer 
wrote:
> Isn't that what `__traits(child)` is for?
>
> https://dlang.org/spec/traits.html#child

Yes, __traits(child, object, method_alias)(args) is the way to do 
it.


More information about the Digitalmars-d-learn mailing list