Filter for opDispatch?
Adam D. Ruppe
destructionator at gmail.com
Fri May 14 22:52:04 UTC 2021
On Friday, 14 May 2021 at 22:39:29 UTC, frame wrote:
> - how can I tell the compiler that I do not want to handle some
> calls?
Put a template constraint on it. `void opDispatch(string s)()
if(s == "whatever")` or minimally like `if(s != "popFront")`
This kind of thing is why I always put opDispatch on a helper
thing now though, and still do the != "popFront" just to stop the
ducktypers.
More information about the Digitalmars-d-learn
mailing list