Defend this if you can
#include #include int main () { std::unique_ptr orig = std::make_unique(5); std::cout
C++ BTFO
5Segmentation fault (core dumped)
what were you expecting
I was expecting to prove c++ is NOT memory safe and i was right
yep you are right
What's more annoying is having to type "std::cout
fn main() { let orig = Box::new(5); println!("{}", orig); let stolen = orig; println!("{}", orig);}
warning: unused variable: `stolen` --> src/main.rs:4:9 |4 | let stolen = orig; | ^^^^^^ | = note: #[warn(unused_variables)] on by default = note: to avoid this warning, consider using `_stolen` insteaderror[E0382]: use of moved value: `orig` --> src/main.rs:5:20 |4 | let stolen = orig; | ------ value moved here5 | println!("{}", orig); | ^^^^ value used here after move | = note: move occurs because `orig` has type `std::boxed::Box`, which does not implement the `Copy` traiterror: aborting due to previous errorerror: Could not compile `playground`.To learn more, run the command again with --verbose.
dasfsdsgd
Try to compile that. If it won't, your language is shit.
But does it implement the System V ABI? If I compile a rust library, do I get an ELF with symbols that can be loaded and discovered by anyone? Can I load and use a rust library from python?
No? Then kill yourself.
Defend this if you can int main(){ int* op_is_a_faggot = nullptr; return *op_is_a_faggot;} Wow, just wow. something something muh memory safety! C++ btfo XDDDD
print('OP is a cunt')print('Stop fucking posting.')print('Please delete System32 because I know your dumb ass runs windows')
Please run the above code in Python for a special message.