Umm, please ignore what I said. I mixed up my prefixed ++ and postfixed ++. You were right the first time. Sorry 'bout that. Raja
On Nov 29, 2007 8:06 AM, Raja Mukherji <[EMAIL PROTECTED]> wrote: > Hi, > > IIRC, the semantics of ++ in C means that code works like this: > > __temp__ = prefix; > prefix = prefix + 1; > prefix = __temp__; > > i.e. the increment should be performed before the assignment, but the > result of ++prefix is the value before the increment. > > Raja > > > On Nov 29, 2007 6:51 AM, Pippijn van Steenhoven <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I found the following construct in preproc/files.c: > > > > prefix = ++prefix; > > > > This would be an excellent example for a "don't" in schoolbooks > > teaching about C sequence points but nonetheless, splitting this up > > would either mean: > > > > prefix = prefix; > > prefix += 1; > > > > or > > > > prefix += 1; > > prefix = prefix; > > > > making both examples and (if I am right) the line in files.c equal to > > prefix++ or ++prefix. Am I right? > > > > Pippijn > > > > ------------------------------------------------------------------------- > > SF.Net email is sponsored by: The Future of Linux Business White Paper > > from Novell. From the desktop to the data center, Linux is going > > mainstream. Let it simplify your IT future. > > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 > > _______________________________________________ > > Unicon-group mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/unicon-group > > > ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Unicon-group mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/unicon-group
