News for hackers. Stuff that matters.
Re:Ada for the C++ and Java Developer [pdf] by Avshalom on Sunday March 28, 2021 @07:14AM (#26609378)
It does have operator overloading so you could certainly define some

  function "*"(Left, Right : Distance) return Area 
and if dedicated enough build up a whole set of unit-types with corresponding conversion rules.

Not an Ada guy at all though so no clue if there's a less by-hand way of doing it.

Re:Ada for the C++ and Java Developer [pdf] by synack on Sunday March 28, 2021 @09:07AM (#26610011)
The Units library does exactly what you describe. http://www.dmitry-kazakov.de/ada/units.htm