On Sun, 2003-05-11 at 21:47, Arpi wrote:
D Richard Felker III <dalias@aerifal.cx> wrote:
If this is true, I rest my case that the Matroska developers are idiots....
Why ? Operator overloading is one of the best features of C++. it makes the code much more readable if you have to handle complex objects.
IMO it makes code unreadably confusing, at least when you overload certain operators. Even worse still is when you overload == but not !=, + but not +=, etc. so that it's inconsistent!
sorry, but it seems to me that you simply don't like C++, and won't accept anything as good in C++. i overloaded == a zillion times.. i find it much cleaner to write: if (obj1 == obj2) {} than if(obj1.equals(obj2)) or if(equals(obj1,obj2)); of course there are some pros and cons for this, but afaik that's the same with the use of macros, don't you think? gabor