Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Bitwise-operations/Objeck/bitwise-operations.objeck
Normal file
17
Task/Bitwise-operations/Objeck/bitwise-operations.objeck
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
use IO;
|
||||
|
||||
bundle Default {
|
||||
class Test {
|
||||
function : Main(args : String[]) ~ Nil {
|
||||
BitWise(3, 4);
|
||||
}
|
||||
|
||||
function : BitWise(a : Int, b : Int) ~ Nil {
|
||||
Console->GetInstance()->Print("a and b: ")->PrintLine(a and b);
|
||||
Console->GetInstance()->Print("a or b: ")->PrintLine(a or b);
|
||||
Console->GetInstance()->Print("a xor b: ")->PrintLine(a xor b);
|
||||
# shift left & right are supported by the compiler and VM but not
|
||||
# exposed to end-users; those instructions are used for optimizations
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue