piclist 2008\07\23\131017a >
Thread: What to do about compiler bug and source code?
www.piclist.com/techref/index.htm?key=what+about+compiler
face
flavicon
face BY : Martin email (remove spam text)



Tomás Ó hÉilidhe wrote:

{Quote hidden}

Postfix increment (n++) occurs after the value is used.
i.e:

b=0;
a = b++ + 4;

results in:
b==1
a==4


So I don't understand how it wouldn't be a bug in the compiler. I have
code that does something similar:

while(*p)
{
       foo(*p++);
}

Starts at p[0] - if it were an undefined OOP there should be a major
problem.
-
Martin
<488765E0.3060804@nnytech.net> quoted-printable

In reply to: <48865C5A.9050501@lavabit.com>
See also: www.piclist.com/techref/index.htm?key=what+about+compiler
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) What to do about compiler bug and source code?

month overview.

new search...