ACM Home Page
Please provide us with feedback. Feedback
Strong typing and physical units
Full text PdfPdf (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
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 0,   Downloads (12 Months): 18,   Citation Count: 5
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/382280.382281
What is a DOI?

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
 
4
5
 
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