News for hackers. Stuff that matters.
Re:Rust and the Blub Paradox by bluejekyll on Saturday January 23, 2016 @12:57PM (#10959209)
> What does the C++ code print?

And there it is. I programmed in C++ long enough to "know" this, but I still remember more jr. Engineers and even arguments with more sr. Engineers around this type of question.

Rust has removed this kind of question almost entirely from the language.

Personally, I have no intention of ever going back to C/C++ for any new project I work on.

Re:Rust and the Blub Paradox by mpweiher on Sunday January 24, 2016 @10:46AM (#10962800)
Of course, this has nothing to do with OO, and everything with C++.

  "I invented the term Object-Oriented, and I can tell you I did not have C++ in mind" -- Alan Kay
Re:Rust and the Blub Paradox by alimw on Saturday January 23, 2016 @01:57PM (#10959493)
> What does the C++ code print? If you guessed wrong, don't worry. You're in good company. If you guessed right, congrats!

How do I knowwww????

Re:Rust and the Blub Paradox by nothrabannosir on Saturday January 23, 2016 @02:02PM (#10959519)

    $ g++ test.cpp
    $ ./a.out
    EDIT---answer removed to let others guess first.
Re:Rust and the Blub Paradox by alimw on Monday January 25, 2016 @06:48AM (#10966648)
Or Windows.

Anyway my point was, why force your readers to find and use a compiler when you could just give the answer below? Not sure why I got downvoted.

Re:Rust and the Blub Paradox by eximius on Saturday January 23, 2016 @10:05PM (#10961279)
Aw. As a user on my phone you make me sad.
Re:Rust and the Blub Paradox by nothrabannosir on Sunday January 24, 2016 @11:26AM (#10962932)