Is it possible to "overload" based on visibility?
60rntogo at gmail.com
Sat Sep 26 22:46:07 UTC 2020
On Friday, 25 September 2020 at 18:58:54 UTC, H. S. Teoh wrote:
> You probably need to use the long-form of templates, with
> separate function declarations, to accomplish this. E.g.:
Alright, but your example still contains shouldReturnByRef which
presumably I need to implement myself. But that's an optimization
detail that I'd rather leave up to the compiler, is that possible?
More information about the Digitalmars-d-learn