Define a primitive data type: Difference between revisions

→‎{{header|C sharp|C#}}: Structs are more suitable for this purpose than classes
m (Omitted Erlang)
(→‎{{header|C sharp|C#}}: Structs are more suitable for this purpose than classes)
Line 192:
As of February 2009 no open source libraries to do this task have been located.
=={{header|C sharp|C#}}==
<lang csharp>public classstruct TinyInt
{
private const int minimalValue = 1;
Line 218:
}
}</lang>
 
=={{header|C++}}==
{{works with|g++}}
Anonymous user