Address of UFCS call implicity converts to Delegate
Basile B. via Digitalmars-d
digitalmars-d at puremagic.com
Sun Apr 23 10:13:31 PDT 2017
On Sunday, 23 April 2017 at 17:07:51 UTC, Jonathan Marler wrote:
> On Sunday, 23 April 2017 at 17:00:59 UTC, Basile B. wrote:
>> 2/ Why not just a member function ?
>
> For the same reason that UFCS exists. You can't add "member
> functions" to external library types.
Good point. I have to say that this feature then makes me think
to what's called "class helpers" in the Delphi/Object Pascal
world. That's exactly for what they're used.
More information about the Digitalmars-d
mailing list