Le 07/11/2012 04:41, Walter Bright a écrit :
On 11/6/2012 6:55 PM, Andrei Alexandrescu wrote:
I don't think that's possible. One would need a mechanism to hook into
all calls
to a function (adorned with a specific attribute) and emit the message
during
compilation. That is missing.

It would be interesting to see where those pain points are, and whether
a general "hook" mechanism for user plugins would be a good idea.


The hook should be in D and CTFEable. This require an API provided in druntime or phobos. This is heavy work, but would definitively worth it.

Reply via email to