El C l u b de Programadores- Asociacion Civil, invita a participar del curso
'Reparacion de Equipos PCs e Introduccion a Redes' que se dictara los dias
Miercoles de 18:30 a 21:30 hs. a partir del 09 de Junio de 2010, en Auditorio
Congreso, Entre Rios 166
1- Temario a desarrollar
2- Datos del instr
On Tue, 01 Jun 2010 21:24:24 +0200, Dimitry Andric wrote:
> On 2010-06-01 21:14, Tim van der Molen wrote:
> > It seems gcc parses the += statement wrongly: "a += b == c" should be
> > interpreted as something like "(a = a + b) == c", but instead gcc seems
> > to interpret it as "a = (a + b == c)".
On Tue, 1 Jun 2010 21:28:18 +0200, Joerg Sonnenberger wrote:
> On Tue, Jun 01, 2010 at 09:14:53PM +0200, Tim van der Molen wrote:
> > Would this be a bug in gcc or am I overlooking something?
>
> == has a higher precendence than += and therefore binds stronger.
> See operator(7).
>
> Joerg
>
Wo
On Tue, 1 Jun 2010 21:14:53 +0200, Tim van der Molen wrote:
> I'm running i386 -current of 13 May and ran into surprising behaviour
> from gcc. Consider the following code snippet:
>
> int i;
>
> i = 1;
> if (i += 1 == 2)
> printf("%d; should be 2\n", i);
>
>
On Tue, Jun 01, 2010 at 09:14:53PM +0200, Tim van der Molen wrote:
> I'm running i386 -current of 13 May and ran into surprising behaviour
> from gcc. Consider the following code snippet:
>
> int i;
>
> i = 1;
> if (i += 1 == 2)
> printf("%d; should be 2\n", i);
>
On Tue, Jun 01, 2010 at 09:14:53PM +0200, Tim van der Molen wrote:
> I'm running i386 -current of 13 May and ran into surprising behaviour
> from gcc. Consider the following code snippet:
>
> int i;
>
> i = 1;
> if (i += 1 == 2)
> printf("%d; should be 2\n", i);
>
+= has lower priority than (+= and = have the same priority, in fact) == thus
i += 1 == 2 means
i += ( 1 == 2), which is i += 0 -> i == 1
Cheers !
hyjial
> I'm running i386 -current of 13 May and ran into surprising behaviour
> from gcc. Consider the following code snippet:
>
> int i;
>
> i = 1;
> if (i += 1 == 2)
> printf("%d; should be 2\n", i);
>
> i = 1;
> if ((i += 1) == 2)
> printf("%d;
On Tue, Jun 01, 2010 at 09:14:53PM +0200, Tim van der Molen wrote:
> Would this be a bug in gcc or am I overlooking something?
== has a higher precendence than += and therefore binds stronger.
See operator(7).
Joerg
I'm running i386 -current of 13 May and ran into surprising behaviour
from gcc. Consider the following code snippet:
int i;
i = 1;
if (i += 1 == 2)
printf("%d; should be 2\n", i);
i = 1;
if ((i += 1) == 2)
printf("%d; should
Troubles reading this email? try viewing it in a browser.
[IMAGE]
Unlimited
music and more!
Hi there,
As a former seeqpod user, you are receiving this personal invitation to
use bloson.com.
Now you will be able to continue listening to your favorite songs like
One Love and Sun Is Shining by Bo
HERRAMIENTAS PARA LA CONSTRUCCION Y MAS
* ANDAMIOS TUBULARES
* ACCESORIOS DE SEGURIDAD
* CABALLETES EXTENSIBLES
* ELEVADOR PARA PLACAS DE DURLOCK O KNAUF
* ESCALERAS TIPO BURROS
* TORRES DE ELEVACION DE MATERIALES
* TRIBUNAS Y GRADAS
* CARROS RECOLECTORES
* VALLAS CERRAMIENTOS
*
This is a message in multipart MIME format. Your mail client should not be
displaying this. Consider upgrading your mail client to view this message
correctly.
13 matches
Mail list logo