Define a primitive data type: Difference between revisions

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

=={{header|C++}}==
=={{header|C++}}==
{{works with|g++}}
{{works with|g++}}