The design of the hooks in std.experimental.checkedint
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jun 5 03:29:26 PDT 2017
On 2017-06-04 21:52, Andrei Alexandrescu wrote:
> What would be the advantage of moving the default into a hook?
The whole idea was to reduce the number of "static if" in the
implementation.
> Hook function is defined: "I want to hook this entire operation."
>
> Hook function is not defined: "I am not interested in hooking this
> operation."
>
> If hook is always defined, the shell cannot identify what a particular
> hook has an interest in.
Right.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list