On 10 May 2020 17:28 -0700, from scj(a)yaccman.com:
With respect to enums, there is a feature I've
wanted for years: a typed
typedef. Saying typetdef int foo would make foo an integer, but if you
passed an ordinary int to something declared as foo it would be an
error. Even if it was an integer constant unless cast.
Isn't that at least pretty close to how Ada does it?
--
Michael Kjörling •
https://michael.kjorling.se • michael(a)kjorling.se
“Remember when, on the Internet, nobody cared that you were a dog?”