Implementation of physical units

Geoff Baldwin · ACM SIGPLAN Notices · 1987

This paper describes an implementation of strong typing with physical units. The typing system of a commercial Pascal compiler was minimally extended to allow compile-time checking of expressions involving physical units to ensure that the familiar semantics of dimensional analysis are not violated. The key concepts and mechanisms are described, as are the differences between ordinary type checking and that for physical units.

Read the paper · More papers on PaperTik