ACM Home Page
Please provide us with feedback. Feedback
Comments on “the law of demeter” and C++
Full text PdfPdf (1.10 MB)
Source ACM SIGPLAN Notices archive
Volume 23 ,  Issue 12  (December 1988) table of contents
Pages: 38 - 44  
Year of Publication: 1988
ISSN:0362-1340
Author
M. Sakkinen  Univ. of Jyva¨skyla¨, Jyva¨skyla¨, Finland
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 2,   Downloads (12 Months): 14,   Citation Count: 3
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/57669.57671
What is a DOI?

ABSTRACT

A rule of good style for object-oriented programming has recently been put forward, actually in several flavours (class vs. object, weak vs. strong). Some possible problems in the original rule are discussed, and a modified formulation is proposed to overcome at least part of the them. Doubts still remain about how useful the rule is with Smalltalk and other untyped languages. Then the application of the rule to the C++ language is studied and shown not to be as straightforward as has been suggested. This is largely a consequence of the intertwining of the conventional and the object-oriented component in C++. On the other hand, being typed, it is a promising language for enforcing rules of this kind at compile time. A new language-specific formulation is finally presented, argumenting that it is better in class than object flavour.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

1
 
2
[Lieb1] Karl Lieberherr, Ian Holland, Gar-lin Lee, and Arthur J. Riel, An objective sense of style, Computer (IEEE) Vol. 21 No. 6 (June 1988), p. 79-81 (The Open Channel).
3
4
 
5
 
6
[Stro1] Bjarne Stroustrup, The C++ Programming Language, Addison-Wesley 1986.
 
7
[Stro2] Bjarne Stroustrup, The Evolution of C++: 1985 to 1987, Proc. USENIX C++ Workshop (Santa Fe, New Mexico, November 1987).