|
|
|
|
|
by mikewarot
2 days ago
|
|
I like the idea of attaching units to a number, so that if A is 9 volts, B is 3 amps, then A*B yields 27 watts. I saw a demo years ago where it was done in C++ using type checking to make the units consistent. There's a feature from Metamine which would be amazing to add to Pascal... the "magic equals" in which the left value of such an assignment would update any time the argument on the right changed. Adding imperative programming would be an amazing addition. As for Lazarus/Free Pascal, the documentation is a key weakness. It merely lists the parameters and routines associated with a thing, but doesn't explain their purpose, nor give examples. This is a huge departure from the Excellent manual that came with Turbo Pascal back in the 1980s/90s. |
|
As far as docs go, would you like to critique ours? https://elements.docs.remobjects.com/Oxygene/Types/Units/ Both I and the person who wrote those docs care about human-written, informative documentation.