How to check member function for being @disable?
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Sep 13 10:59:09 PDT 2016
On Tuesday, 13 September 2016 at 17:52:48 UTC, Jonathan M Davis
wrote:
> It's really intended for disabling features that would normally
> be there. I don't know why it would ever make sense to @disable
> a normal function.
Consider the case of `alias this` or a mixin template. You might
make a wrapper type that disables a particular operation by
writing `@disable void opBinary(op)` so it won't forward to the
underlying thing.
More information about the Digitalmars-d-learn
mailing list