Proposal - disallow overloading of opIn
Jarrett Billingsley
kb3ctd2 at yahoo.com
Tue Jun 20 19:05:21 PDT 2006
By that, I mean just the "regular" form of opIn, and only allow overloading
of opIn_r.
Why? Well, 'in' doesn't make sense if you reverse it; that is, "array in 4"
makes no sense while "4 in array" does.
Just from a cursory glance at opover.c, this should not be hard to
implement - just have InExp::opId() return NULL. It doesn't look like
anything depends on the result of opId() being non-NULL.
More information about the Digitalmars-d
mailing list