"The estrogen leaving my body as I run archinstall." With picture of someone's soul leaving them.
you are viewing a single comment's thread
view the rest of the comments
[–] [S] 3 points 9 months ago*

How else can you use OOP?

The code is manually embedding bash to comments as Makefile and using pointer arithmetic to access private fields. Prints hello world
//usr/bin/g++ -g -std=c++26 -Wall -Wextra -Werror -o $0.out $0 && $0.out;
//usr/bin/rm -f $0.out; exit<br>
#include                                                                                  struct {
// Principle of least privelege
private:
[[maybe_unused]] const char* _ = "hello, ";                                       [[maybe_unused]] const char* _ = "world\n";
} Private;<br>
// print hello world
int main() {
printf("%s", ((const char*)(&Private)+0));
printf("%s", ((const char*)(&Private)+1));
return 0;
}

  • source
  • parent