[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: strange declaration errors in kicontheme.h (3.1.x)
From: Nicolas Goutte <nicolasg () snafu ! de>
Date: 2003-09-15 18:12:49
[Download RAW message or body]
Gcc seems not to want to do this. So my info is outdated.
Have a nice day!
On Monday 15 September 2003 18:09, Nicolas Goutte wrote:
> Well, I had learnt that you define the operator without int and then it is
> the job of the compiler.
>
> It should know to output, as needed, either
> object++
> return=object;
>
> or
> return=object;
> object++;
>
> I do not know if it is right or wrong, as I do not remember where I learnt
> it.
>
> Have a nice day!
>
> On Monday 15 September 2003 17:07, Guillaume Laurent wrote:
> > On Monday 15 September 2003 16:45, Nicolas Goutte wrote:
> > > The code is definig a different operator for
> > > ++x
> > > and for
> > > x++
> > >
> > > It seems that gcc does not like that.
> >
> > I hope not. :-)
> >
> > > I do not understand why but perhaps you can remove one of the two
> > > operator definitions. (It is seldom needed to have both but sometimes
> > > you must be careful to program it.)
> >
> > You pretty much always have to have both. They don't return the same
> > result.
> >
> >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to
> >> unsubscribe <<
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic