Author Topic: Painfully Funny  (Read 3258 times)

Offline Hooman

  • Administrator
  • Hero Member
  • *****
  • Posts: 4954
Painfully Funny
« on: January 03, 2019, 12:11:46 PM »
I just came across this little gem on Stack Overflow:
Why is this program erroneously rejected by three C++ compilers?

Checking the revision history, I found it was originally posted on April 1, 2011.

Offline lordpalandus

  • Banned
  • Hero Member
  • *****
  • Posts: 825
Re: Painfully Funny
« Reply #1 on: January 06, 2019, 02:16:22 PM »
I didn't know that a .png file was an actually legitimate source file for compilation in C++.
Currently working on Cataclysm of Chaos, Remade.
Link to OPU page = http://forum.outpost2.net/index.php/topic,6073.0.html

Offline leeor_net

  • Administrator
  • Hero Member
  • *****
  • Posts: 2350
  • OPHD Lead Developer
    • LairWorks Entertainment
Re: Painfully Funny
« Reply #2 on: January 06, 2019, 02:50:43 PM »
Depends on the compiler.

Offline Hooman

  • Administrator
  • Hero Member
  • *****
  • Posts: 4954
Re: Painfully Funny
« Reply #3 on: January 07, 2019, 02:13:09 AM »
You know, technically there's nothing in the standard against supporting PNG files, and using OCR on them. ;)

Offline leeor_net

  • Administrator
  • Hero Member
  • *****
  • Posts: 2350
  • OPHD Lead Developer
    • LairWorks Entertainment
Re: Painfully Funny
« Reply #4 on: January 07, 2019, 07:05:08 PM »
That's my point... and I believe the point brought up in the linked thread. :)