mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-21 10:28:50 +08:00
🚀 add binary negation
This commit is contained in:
+8
-1
@@ -204,4 +204,11 @@ foreach(i;a){
|
||||
println(runtime.argv());
|
||||
func(a,b,c,d="只有红茶可以吗"){
|
||||
println(a,' ',b,' ',c,' ',d,' true: ',true,' false: ',false);
|
||||
}(c:1919810,b:514,a:114);
|
||||
}(c:1919810,b:514,a:114);
|
||||
|
||||
# test binary negation
|
||||
println("~ 0x80: ",~0x80);
|
||||
println("~ 0x8000: ",~0x8000);
|
||||
println("~ 0x80000000: ",~0x80000000);
|
||||
println("~ 0x8000000000000000: ",~0x8000000000000000);
|
||||
println(~0x80000000==~0x8000000000000000);
|
||||
Reference in New Issue
Block a user