std library hooks
Walter Bright
newshound2 at digitalmars.com
Sun Apr 15 17:52:44 PDT 2012
On 4/15/2012 5:27 PM, Sean Kelly wrote:
> If you're overriding the one in the library then it has to be documented to
> have that name. It also has to live in its own section or you can have link
> errors.
Yes, that is correct.
> By comparison, hooks for commonly overridden things seems a bit
> easier.
I don't agree. Having a hook means you have to set up a pointer, document it,
set up something to initialize the pointer, etc. In all, it seems to be more
work both for the library implementer and the user.
More information about the Digitalmars-d
mailing list