Because it will not help write a clear program. If we overload sizeof, :?, ::, it will cause a lot of confuse rather than make program more easier to understand.
Above answer was rated as good by the following members: yzesong
RE: Why cann't we overload the sizeof, :?, :: ., .* op...
Because it will not help write a clear program. If we overload sizeof :? :: it will cause a lot of confuse rather than make program more easier to understand.
RE: Why cann't we overload the sizeof, :?, :: ., .* op...
Hi all
Firstof all only . :: and .* operators never be overladed.
Because They take name rather than a value as their socound operand and provide the primary means of reffering to members.Allowing them to be overloaded would lead to subtlety.