Define a primitive data type: Difference between revisions
Content added Content deleted
(Haskell solution) |
(Point to C++ instead of C plus plus) |
||
Line 11: | Line 11: | ||
The compiler will omit bounds checking for the assignment of A to B above because both values are of My_Type. A cannot hold a value outside the range of 1..10, therefore the assignment cannot produce an out of bounds result. |
The compiler will omit bounds checking for the assignment of A to B above because both values are of My_Type. A cannot hold a value outside the range of 1..10, therefore the assignment cannot produce an out of bounds result. |
||
== |
=={{header|C++}}== |
||
[[Category:C plus plus]] |
|||
'''Compiler:''' [[GCC]] |
'''Compiler:''' [[GCC]] |
||