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

I just spent an hour constructing a class called Morse such that this outputs "HELLO WORLD!":

    Morse m;
    cout << (++++m) << (+m) << (+-++m) << (+-++m) << (---m) << ", "
         << (+--m) << (---m) << (+-+m) << (+-++m) << (-++m) << "!\n";
Damn you, C++! Why won't you let me overload the . operator? ;-)



Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: