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

Quirin Schroll qs.il.paperinik at gmail.com
Tue May 2 12:52:39 UTC 2023


How do I invoke the member function in a reliable way? Given 
`obj` of the type of the object, I used `mixin("obj.", 
__traits(identifier, memberFunc), "(params)")`, but that has 
issues, among probably others, definitely with visibility. (The 
member function alias is a template parameter.)


More information about the Digitalmars-d-learn mailing list