3 ms·
> In C++ the whole thing is that built-in types aren't special, including ints and operators. This is a deep concept in the design of the language. Except it n
by saagarjha 8y ago
> In C++ the whole thing is that built-in types aren't special, including ints and operators. This is a deep concept in the design of the language.
Except it needs to interact with C, which significantly limits the extent of this unification.
- gdy 8y agoHow so?
- saagarjha 8y agoThe language standard seems to bend over backward to define exceptions for these to that they kinda fit into the system; for example, if you define a variable like this: SomeType variable; The default constructor gets called, except if it's a built-in type nothing actually happens and variable has garbage in it.
- pjmlp 8y agoThe solution is to wrap anything C related in type safe C++ code.