你遇到过的源代码中最好的注释是什么?


当前回答

if(m_measures =/*=*/ --index)
{
    ....

其他回答

我看到有人对代码的评论:

// This comment is self explanatory.

我猜他是想说“可变的”,但这个错误造成了一个有趣的评论……想想这里的循环逻辑,以及写它的徒劳。

'""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
'
'  NOTE: DON'T SCREW WITH THIS CODE UNLESS YOU REALLY UNDERSTAND IT!
'
'""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
-- Beyond this point, there'll be dragons

我觉得更长的说法^^更能说明问题

我没有亲身经历过这种情况,但这是一个很好的故事(详见我的评论中的解释):

#define MSGTAG_B33R     0x723 /* RIPLVB */
# To understand recursion, see the bottom of this file 

在文件的底部:

# To understand recursion, see the top of this file