
Originally Posted by
plonoma
few other things about the type() declaration solution
-The default should be respected.
If the platform cannot full fill the defaults.
The programmer should not be able to use the default type().
-The implementation details about a type should not be about internal representation.
Should not be able to change that.
We work in a higher language for a reason.
-Different meaning, behaviour is a reason for making a new type.
-Working with versions allows me to let both old and new programs work with new infrastructure.
(making new programs work on old things will always be a problem)
This making it possible to get stuff working and make it keep working.
I'm not sure I follow you, what you describe appears to be possible in current C++.
Code:
myint<32> a = 3; //32 bits, specialized class template
myint a = 3; //default, N bits
And this is pretty much run-of-the-mill C++, nothing special about it.