From: euamts@eua.ericsson.se (Mats Henricson)
Newsgroups: comp.lang.c++
Subject: Re: C++ Coding Standards
Date: 15 Apr 92 12:22:19 GMT
Organization: Ellemtel Telecom Systems Labs, Stockholm, Sweden

avs@inf.rl.ac.uk writes:

>Help Wanted

>We are involved in a multi institution Office Automation project which 
>is using C++.  As we are just starting the coding phase, we are looking for 
>any guidelines as to "good" coding style, along the lines of the "AT&T 
>Indian Hill C Style and Coding Standards".  While most of these C guidelines 
>also apply to C++, there is a lot more syntax to be handled, e.g. class 
>declarations.  There is also a number of closely related issues, 
>e.g. references vs pointers.

>We know from experience that a common style makes code comprehension much 
>easier and debugging simpler.  Before inventing our own guidelines, 
>or adopting what emerged from earlier projects, we thought we would ask 
>if anybody working on large C++ projects could give us guidelines, or even 
>stylistic hints that we could develop into a "style standard" or point us 
>to the appropriate literature.

>Thank you.

Help available (sort of):

Some months ago we persuaded our managers to make our internal coding
standard for C++ public domain. Unfortunately it's in Swedish. Fortunately
it's translated to English. We are reviewing the translation at this very
moment, and we are quite confident that the new revision will be released
in a couple of weeks. If you can't wait until then, you can always have
a look at the Swedish version where all comments in code examples are in
English. A lot of the terminology are the same...

Below is the standard mail we send to all interested people. When the
english version is released, we'll let you know by mail or in comp.lang.c++.

I hope this helps you!

Best regards,

Mats Henricson
Ellemtel Telecommunication Systems Laboratories
Stockholm
Sweden

============================================================================

Programmeringsregler f|r C++

Coding standards for C++ (in SWEDISH)

Hi!

This mail is directed to all people that explicitly have asked for
the coding standards for C++ written here at Ellemtel.

So, finally, we have had time enough to review our coding standard and
explicitly test all code in it. As a matter of fact we found ~10 bugs.
However, they are still in swedish, except for comments in code.
We hope that will be enough for readers not familiar to any scandinavian
language.

The document has the same copyright notice as the cool library, i.e. it
is OK to copy and use the document, but we keep the copyrights. Also, we
give no warranty at all. If any of our code examples makes your computer
network burn down, we just say sorry.

The document is written in FrameMaker, but saved in Postscript and
compressed. It can be accessed by anonymous ftp from our server:
   euagate.eua.ericsson.se   (Internet address: 134.138.134.16)
It is in the directory:
   ~ftp/pub/eua/c++
The file is ~125k large and its name is:
   rules.ps.Z

If there are any problems in accessing or printing the file, please contact
us at:
   mats.henricson@eua.ericsson.se

All comments are welcome. Especially if you find any bugs or
misunderstandings from our side.

Erik Nyquist
Mats Henricson

Ellemtel
Box 1505
125 25 Alvsjo
Sweden