Jump to content

Define a primitive data type: Difference between revisions

m
→‎{{header|Wren}}: Changed to Wren S/H
imported>Arakov
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 2,998:
 
The following carries out this procedure for a few basic operations and shows examples of their usage including throwing an out of bounds error on the last one.
<syntaxhighlight lang="ecmascriptwren">class TinyInt {
construct new(n) {
if (!(n is Num && n.isInteger && n >= 1 && n <= 10)) {
9,485

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.