Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
article
Free access

Dynamically-valued constants: an underused language feature

Published: 01 April 1995 Publication History

Abstract

Languages such as Ada and C++ allow programmers to declare an object as a constant, even though the object has a dynamic initial value. The benefits of using this construct are given. A sample of actual C++ code is measured to see how often dynamically-valued constants are used, and how often they could be used. This result is compared to previously published results for Ada sample code, and to some Ada code where this feature was consciously employed. The comparisons indicate that this language feature is generally underused. Possible reasons for this underuse are discussed.

References

[1]
[Ada9X 94] Ada 9X Reference Manual, Draft Version 5.0, ANSI/ISO DIS 8652. Intermetrics, Inc., June 1994.
[2]
[Barnes 82] Barnes, J.G.P., Programming in Ada (first edition). Addison-Wesley, 1982.
[3]
[Booch 83] Booch, G., Software Engineering with Ada (first edition). Benjamin/Cummings, 1983.
[4]
[C++ 94] Working Paper for Draft Proposed International Standard for Information Systems -- Programming Language C++, X3J16/94-0158 WG21/N0545, September 1994.
[5]
[Carroll 95] Carroll, M.D., and M.A. Ellis, Designing and Coding Reusable C++. Addison-Wesley, 1995 [to appear].
[6]
[Ellemtel 92] Programming in C++ : Rules and Recommendations, Ellemtel Telecommunications Systems Laboratories, 1992.
[7]
[Ichbiah 79] Ichbiah, J.D., J.G.P. Barnes, J.C. Heliard, B. Krieg-Brueckner, O. Roubine, and B.A. Wichmann, "Rationale for the Design of the ADA Programming Language", ACM SIGPLAN Notices, Vol. 14, No. 6, Part B, June 1979.
[8]
[Kernighan 88] Kernighan, B.W., and D.M. Ritchie, The C Programming Language, Second Edition. Prentice-Hall, 1988.
[9]
[Lindsey 93] Lindsey, C.H., "A History of ALGOL 68", ACM SIGPlan Second History of Programming Languages Conference (HOPL-II), ACM SIGPLAN Notices, Vol. 28, No. 3, March 1993, pp. 97-132.
[10]
[Lippman 89] Lippman, S.B., C++ Primer (first edition). Addison-Wesley, 1989.
[11]
[Perkins 89] Perkins, J.A., "Programming Practices: Analysis of Ada Source Developed for the Air Force, Army, and Navy", Proceedings TRI-Ada '89, pp. 342-354.
[12]
[Schilling93] Schilling, J.L., "Use of Ada in a Commercial, Small Company Environment", Proceedings of the Tenth Annual Washington Ada Symposium (WAdaS'93), pp. 89-93.
[13]
[SPC 92] Ada Quality and Style: Guidelines for Professional Programmers, Software Productivity Consortium, Inc., 1992.
[14]
[Stroustrup 86] Stroustrup, B., The C++ Programming Language (first edition). Addison-Wesley, 1986.
[15]
[Stroustrup 94] Stroustrup, B., The Design and Evolution of C++. Addison-Wesley, 1994.
[16]
[Taligent 94] Taligent's Guide to Designing Programs: Well-Mannered Object-Oriented Design in C++. Addison-Wesley, 1994.
[17]
[Wikström 87] Wikström, Å Functional Programming Using Standard ML. Prentice Hall, 1987.

Cited By

View all
  • (2019)A survey of support for structured communication in concurrency control modelsJournal of Parallel and Distributed Computing10.1016/j.jpdc.2013.11.00574:4(2266-2285)Online publication date: 4-Jan-2019

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM SIGPLAN Notices
ACM SIGPLAN Notices  Volume 30, Issue 4
April 1995
74 pages
ISSN:0362-1340
EISSN:1558-1160
DOI:10.1145/202176
Issue’s Table of Contents

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 01 April 1995
Published in SIGPLAN Volume 30, Issue 4

Check for updates

Qualifiers

  • Article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)49
  • Downloads (Last 6 weeks)1
Reflects downloads up to 14 Oct 2024

Other Metrics

Citations

Cited By

View all
  • (2019)A survey of support for structured communication in concurrency control modelsJournal of Parallel and Distributed Computing10.1016/j.jpdc.2013.11.00574:4(2266-2285)Online publication date: 4-Jan-2019

View Options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Get Access

Login options

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media