Skip navigation

Monthly Archives: April 2006

C++ is fun!

#include
using namespace std;

class Babies {};

int
main()
{
  try {
    throw Babies();
  } catch(class Babies e) {
    cout << "Congratulations.  You caught the babies." << endl;
  }
  return 0;
}

I mean, come on...where else can you legally throw Babies?