Define a primitive data type: Difference between revisions
Content added Content deleted
(→{{header|Visual Basic .NET}}: Omit from Déjà Vu) |
m (Added bc, dc and Vim Script to omission list) |
||
Line 1: | Line 1: | ||
{{task|Basic language learning |
{{task|Basic language learning}} |
||
[[Category:Type System]] |
[[Category:Type System]] |
||
Demonstrate how to define a type that behaves like an integer but has a lowest valid value of 1 and a highest valid value of 10. Include all bounds checking you need to write, or explain how the compiler or interpreter creates those bounds checks for you. |
Demonstrate how to define a type that behaves like an integer but has a lowest valid value of 1 and a highest valid value of 10. Include all bounds checking you need to write, or explain how the compiler or interpreter creates those bounds checks for you. |
||
Line 1,548: | Line 1,548: | ||
End Structure</lang> |
End Structure</lang> |
||
{{omit from|AWK}} |
{{omit from|AWK}} |
||
{{omit from|BBC BASIC}} |
|||
{{omit from|bc}} |
|||
{{omit from|C|No operator overloading}} |
{{omit from|C|No operator overloading}} |
||
{{omit from|dc}} |
|||
{{omit from|Déjà Vu}} |
{{omit from|Déjà Vu}} |
||
{{omit from|Erlang|The only way for Erlang would be to do like Java, i.e. cheat}} |
{{omit from|Erlang|The only way for Erlang would be to do like Java, i.e. cheat}} |
||
Line 1,560: | Line 1,563: | ||
{{omit from|TI-83 BASIC}} |
{{omit from|TI-83 BASIC}} |
||
{{omit from|TI-89 BASIC|Does not have user-defined data structures.}} |
{{omit from|TI-89 BASIC|Does not have user-defined data structures.}} |
||
{{omit from|Vim Script}} |
|||
{{omit from|UNIX Shell}} |
{{omit from|UNIX Shell}} |