Define a primitive data type: Difference between revisions

Content deleted Content added
fortran + lang tag or e
Line 194:
This class relies on implicit conversions to do most int operations; however the combined operations with assignment have to be coded explicitly.
 
<lang cpp> #include <stdexcept>
class tiny_int
Line 255:
private:
unsigned char value; // we don't need more space
};</lang>
 
=={{header|E}}==