Define a primitive data type: Difference between revisions

m
Added bc, dc and Vim Script to omission list
(→‎{{header|Visual Basic .NET}}: Omit from Déjà Vu)
m (Added bc, dc and Vim Script to omission list)
Line 1:
{{task|Basic language learning}}{{omit from|BBC BASIC}}
[[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.
Line 1,548:
End Structure</lang>
{{omit from|AWK}}
{{omit from|BBC BASIC}}
{{omit from|bc}}
{{omit from|C|No operator overloading}}
{{omit from|dc}}
{{omit from|Déjà Vu}}
{{omit from|Erlang|The only way for Erlang would be to do like Java, i.e. cheat}}
Line 1,560 ⟶ 1,563:
{{omit from|TI-83 BASIC}}
{{omit from|TI-89 BASIC|Does not have user-defined data structures.}}
{{omit from|Vim Script}}
{{omit from|UNIX Shell}}