How to set the thirtysecond bit?
28 Dec
2006
28 Dec
'06
3:18 p.m.
Dear list. I would have expected to be able to set the thirtysecond bit of an integer type, but I cannot. Does anybody know why? Thanks, Bastiaan. program thirtysecond; const thirtyfirst = 2#01000000000000000000000000000000; thirtysecond = 2#10000000000000000000000000000000; var i_thirtyfirst : integer value thirtyfirst; i_thirtysecond : integer value thirtysecond; {constant out of range, initial value is of wrong type} i_minus_zero : integer value 2#10000000000000000000000000000000; {idem} i_minint : integer value 2#11111111111111111111111111111111; {idem} i_thirtysecond2 : integer value 1 shl 31; {idem} begin end.
7168
Age (days ago)
7169
Last active (days ago)
5 comments
4 participants
participants (4)
-
Bastiaan Veelo -
CBFalconer -
Frank Heckenbach -
Russ Whitaker