[Mplayer-cvslog] CVS: main/libmpdemux demux_mkv.cpp,1.2,1.3
gabor
gabor at z10n.net
Mon May 12 16:56:31 CEST 2003
On Sun, 2003-05-11 at 21:47, Arpi wrote:
> > > D Richard Felker III <dalias at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-cvslog/attachments/20030512/0b095ef0/attachment.pgp>
More information about the MPlayer-cvslog
mailing list