你遇到过的源代码中最好的注释是什么?
当前回答
struct core_unlocker
{
core_unlocker(lock)
{
m_lock = lock
unlock(lock) //Abandon All Locks, Ye Who Enter Core!
}
~core_unlocker()
{
lock(m_lock)
}
private:
Corelock m_lock;
}
其他回答
//把这个放在这里的人是个白痴…这根本不管用!
但是代码还在那里……
/**
* Not even your mum thinks you're special if you call this method
*/
onlyYourMumThinksYoureSpecialIfYouCallThisMethod() {...}
if(count<0) count=0; //don't get me wrong but this has to be done :p
Repeat
...
Until (JesusChristsReturn) ' Not sure
// I dedicate all this code, all my work, to my wife, Darlene, who will
// have to support me and our three children and the dog once it gets
// released into the public.