Joel Uckelman on Tue, 28 Sep 2004 11:13:55 -0500 (CDT)

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [hosers-talk] Celebrity Deathmatch: Programmer v. Compiler

Thus spake "Jon Stewart":
> A long, long time ago, I wrote a complete hack of a function that did some 
> ridiculous thing with c-style strings, something on the order of 
> usefulness as reversing a string in place. It attempted to waste no 
> cycles, and it pretty well succeeded (I think I even used a goto to save a 
> statement). Josh said it should be featured on the television series "When 
> Programmers Attack".
> Now, many years later, I am still attacking. Unfortunately, my 
> competition has more than kept pace with me. When I say:
>   #define TEST_FIXTURE(testname, fixtureType) \
>     void testname(fixtureType& fixture); \
>     static AutoRegister UNIQUENAME(testname)(TestRunner::TestPtr(new 
>       BoundTest(boost::lambda::bind(&BoundTest::RunFixture<fixtureType>, 
>       _1, var(testname), _2), #testname))); \
>     void testname(fixtureType& fixture)


hosers-talk mailing list