Article View: comp.std.c++
Article #2555Re: New treatment of 'for (int i ...'
From: Randy Oxentenko
Date: Mon, 13 Nov 1995 12:39
Date: Mon, 13 Nov 1995 12:39
42 lines
1580 bytes
1580 bytes
In article <sjcDHqMKM.MBG@netcom.com>, Steven Correll <sjc@netcom.com> wrote: >This technique won't work in current compilers: > > for (unsigned i = 0; ...; ...) > ... > for (i = 0; ...; ...) > ... > >And this won't work in older ones: > > for (unsigned i = 0; ...; ...) > ... > for (unsigned i = 0; ...; ...) > ... > >Must portable programs do this? > > for (unsigned i0 = 0; ...; ...) > ... > for (unsigned i1 = 0; ...; ...) > ... It is, of course, still permissible in both cases to write this: unsigned i; for (i = 0; ...; ...) ... for (i = 0; ...; ...) ... -- Randy Oxentenko | It is foolish to criticize. There is little rdo@elt.com | point in fretting over the fact that God has http://www.dfw.net/~rox/ | not seen fit to distribute evenly the gift Opinions are not from ELT | of intelligence. -- John Wanamaker --- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<DHzF5D.DKo@elt.com>Path:
arc1-ca.pugleaf.net!128.32.155.1!mattReferences:
<47itjt$65m@lhc.nlm.nih.gov> <sjcDHqMKM.MBG@netcom.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt From: rdo@elt.com (Randy Oxentenko) Newsgroups: comp.std.c++ Subject: Re: New treatment of 'for (int i ...' Date: Mon, 13 Nov 1995 12:39:12 GMT Organization: Electronic Label Technology, Broken Arrow, OK Approved: matt@physics2.Berkeley.EDU (Matt Austern) Message-ID: <DHzF5D.DKo@elt.com> References: <47itjt$65m@lhc.nlm.nih.gov> <sjcDHqMKM.MBG@netcom.com> NNTP-Posting-Host: physics2.berkeley.edu