static opSlice is not possible
Adam D. Ruppe
destructionator at gmail.com
Thu Feb 15 23:22:17 UTC 2018
On Thursday, 15 February 2018 at 23:20:42 UTC, Jonathan M Davis
wrote:
> The only overloaded operator that I'd expect to work as static
> would be opCall, which I expect works primarily because of
> functors but is useful for factory functions as well.
static opCall is kinda weird in practice and frequently conflicts
with non-static opCall as well as constructors. I don't suggest
anyone try to use it (and in fact, I'd like to have it removed
from the language)
More information about the Digitalmars-d-learn
mailing list