Variable size/Set: Difference between revisions

Add Nimrod
m (Omit from Logtalk)
(Add Nimrod)
Line 194:
<lang modula3>TYPE UByte = BITS 8 FOR [0..255];</lang>
Note that this only works for records, arrays, and objects. Also note that the size in bits must be large enough to hold the entire range (in this case, 8 bits is the correct amount for the range 0 to 255) or the compiler will error.
 
=={{header|Nimrod}}==
<lang nimrod>var a: int8 = 0
var b: int16 = 1
var c: int32 = 10
var d: int64 = 100</lang>
 
=={{header|ooRexx}}==
Anonymous user