Bitwise operations: Difference between revisions

added slate language
m (→‎{{header|x86 assembly}}: nl after works with because of changes in the template)
(added slate language)
Line 743:
print 'a >> b: ', a >> b, "\n" # arithmetic right shift
end</lang>
 
 
=={{header|Slate}}==
<lang slate>
[ |:a :b |
 
inform: (a bitAnd: b) printString.
inform: (a bitOr: b) printString.
inform: (a bitXor: b) printString.
inform: (a bitNot) printString.
inform: (a << b) printString.
inform: (a >> b) printString.
 
] applyTo: {8. 12}.
 
</lang>
 
 
 
=={{header|Smalltalk}}==
Anonymous user