News for hackers. Stuff that matters.
Re:The long arrow operator in C++ by alejohausner on Thursday July 13, 2017 @04:39PM (#14764975)
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? ;-)

There are no comments on this comment yet.