回覆列表
  • 1 # 使用者7829881662594

    英文原文如下:

    At the programmer level, taking the address of a constructor is not permitted. Of course, this is exactly what the compiler does in its support of vec_new(). Invoking the constructor through a pointer, however, inhibits access of default argument values. This has always resulted in less that first-class handling of the initialization of an array of class objects. 技術上的含義黃兢成先生解釋的已經很清楚了。其實只要理解什麼是first-class object,就可以意會這就話想表達的內容。如果翻譯成中文的話,可以翻譯成:“這會導致初始化物件陣列時其中的物件無法被當成一級物件處理。”什麼是first-class object可以參考StackOverflow:python - What are "first class" objects?Wikipedia:First-class citizen譯者“未能充分理解”這句話非常正常,畢竟這句話在英語語法角度確實過於奇怪。經過反覆的思考,我認為我可以帶著90%的信心告訴題主——這極有可能是一處印刷錯誤。把that換成than就全都正常了:)

  • 中秋節和大豐收的關聯?
  • 沒有雪的冬天還是冬天嗎?