| Strong typing and physical units |
| Full text |
Pdf
(765 KB)
|
| Source
|
ACM SIGPLAN Notices
archive
Volume 21 , Issue 3 (March 1986)
table of contents
Pages: 11 - 20
Year of Publication: 1986
ISSN:0362-1340
|
|
Author
|
|
R. Männer
|
Physical Institute, University of Heidelberg, F.R. Germany
|
|
| Publisher |
|
| Bibliometrics |
Downloads (6 Weeks): 0, Downloads (12 Months): 18, Citation Count: 5
|
|
|
ABSTRACT
This paper proposes a syntactic extension of high level languages like PASCAL or ADA to allow the usage of physical quantities, i.e. numbers with units, instead of just numbers. It offers enhanced type checking for expressions and assignments during compilation time. Additionally, it allows problem oriented simple scaling of variables and local scale selection. Furthermore, it reduces the number of coding errors due to wrongly chosen scales. After a discussion of mutual relations between strong typing in programming languages and physical units, examples are shown to demonstrate the usefulness of the proposed extension. Finally a graph representation of the new syntactic elements is given.
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
|
[2] J.W. Backus, F.L. Bauer, J. Green, C. Katz, J. McCarthy, P. Naur, A.J. Perlis, H. Rutishauser, K. Samelson, B. Vauquois, J.H. Wegstein, A. van Wijngaarden, M. Woodger: Revised Report on the Algorithmic Language ALGOL 60; Numerische Mathematik 1 (1959) 41-60.
|
| |
3
|
Kathleen Jensen , Niklaus Wirth , P. Brinch Hansen , D. Gries , C. Moler , G. Seegmüller , N. Wirth , G. Goos , J. Hartmanis, PASCAL user manual and report, Springer-Verlag New York, Inc., New York, NY, 1974
|
| |
4
|
|
 |
5
|
Jean D. Ichbiah , Bernd Krieg-Brueckner , Brian A. Wichmann , John G. P. Barnes , Olivier Roubine , Jean-Claude Heliard, Rationale for the design of the Ada programming language, ACM SIGPLAN Notices, v.14 n.6b, p.1-261, June 1979
[doi> 10.1145/956653.956654]
|
| |
6
|
[6] J. Welsh, M.J. Sneeringer, C.A.R. Hoare: Ambiguities and Insecurities in Pascal; Software-Practice and Experience 7, 6 (1977) 685-696.
|
| |
7
|
[7] J.A. Adam, Fischetti M.A.: SDI: The Grand Experiment; IEEE Spectrum, Sep. 1985, 57.
|
| |
8
|
[8] P. Marmier, E. Sheldon: Physics of Nuclei and Particles; Acad. Press, New York (1969) 809 pp.
|
 |
9
|
|
|