I remember finding a piece of code online that completely abused operator overloading in C++ in order to draw pictures, something like:
int size = (I----I
| |
I----I).area(); //returns 4
or
int v = ( o----o
/ /1
I----I |
| | 1
I----I/ ).volume();
(The code here probably wouldn't compile, but the code was similar to here.)
Does anyone know where this website was? I'm looking all over the internet but can't find it. :(