| Comments on “the law of demeter” and C++ |
| Full text |
Pdf
(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
|
|
| Publisher |
|
| Bibliometrics |
Downloads (6 Weeks): 2, Downloads (12 Months): 14, Citation Count: 3
|
|
|
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
|
Daniel G. Bobrow , Kenneth Kahn , Gregor Kiczales , Larry Masinter , Mark Stefik , Frank Zdybel, CommonLoops: merging Lisp and object-oriented programming, ACM SIGPLAN Notices, v.21 n.11, p.17-29, Nov. 1986
|
| |
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
|
K. Lieberherr , I. Holland , A. Riel, Object-oriented programming: an objective sense of style, Conference proceedings on Object-oriented programming systems, languages and applications, p.323-334, September 25-30, 1988, San Diego, California, United States
|
 |
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).
|
|