Hacker News new | past | comments | ask | show | jobs | submit login

My favorite is that these are indeed "alternate operator tokens" an so you can use `compl` in place of ~ to name a destructor. Like, for explicit destruction:

    MyType* foo = ...;
    foo->compl MyType();



If there is ever an IOC++CC (International Obfuscated C++ Code Contest), I imagine that this technique will show up all over the place.

Bonus: Can you paste together the "compl" token with preprocessor macros?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: