[已注销]对《Essential C++》的笔记(2)

Essential C++
  • 书名: Essential C++
  • 作者: Stanley B. Lippman
  • 页数: 288
  • 出版社: 机械工业出版社
  • 出版年: 2010-10
  • 第57页
    How does the compiler know which instance of the four overloaded functions to invoke? It compares the acutal arguments supplied to the funciton invocation against the parameters of each overloaded instance, choosing the best match. This is why the parameter list of each overloaded function must be unique.
    引自第57页
    2013-05-29 14:15:23 回应
  • 第132页
    ... This is because of the maximal munch compilation rule. This rule requires that a symbol sequence always be interpreted as the maximal legal sequence of symbols.
    引自第132页
    2013-05-29 14:17:26 1人推荐 回应