This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: locale/file/style questions
- To: libstdc++-v3@cygnus.com
- Subject: Re: locale/file/style questions
- From: Mumit Khan <khan@xraylith.wisc.edu>
- Date: Fri, 8 Jan 1999 16:40:08 -0600 (CST)
On Fri, 8 Jan 1999, Phil Edwards wrote:
> I used to do the exact opposite, in order to satisfy some compilers that
> would puke when public functions operated on private data that were not
> yet declared.
If there's been one thing that's been consistent with my C++ code since
'89 or so, it's the placement of public before private. It's worked
reasonably well (with a few compiler bug workaround till a few years ago)
since Cfront v1.x.
Look back at code that you had written 10 years ago, and haven't looked at
since, and you'll see how much of a difference it makes. Never trust
comments written 10 years ago right before the big product deadline, trust
only your source ;-)
Regards,
Mumit