(no subject)
Oct. 26th, 2009 04:38 pmAPI hall of shame (names redacted to protect the guilty): I have just found a class that must be used as follows:
void foo(Input *in, Output *out)
{
Processor proc;
proc->SetOutput(out);
proc->Process(in, out->ThingOne(),
out->ThingTwo(), out->ThingThree());
}
Process() retrieves ThingOne through ThingThree itself, and asserts that its caller passed the same values. I could not make this shit up if I tried.