|
|
|
|
|
by mikulas_florek
3368 days ago
|
|
It's hard to discuss this without using any specific "type-safe" language. 1. you can have the same problem in type-safe language, since it will probably have cast to int too
2. do not use builtin operators in C for that, instead create new functions, e.g. addMeters(Meters a, Meters b);
3. hide the int in *.c file |
|