The += is already a member operator, so yes, the left hand operand is allowed to be changed. ++ is not supported yet, but would also be a member operator, just as they are in C++.
Making >> a member operator would add extra complexity to the compiler, since it is already a global operator. But, I think that I'm no longer able to avoid it. I'll have to investigate just what would be needed to implement that.
🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement