dangling references 中文意思是什麼

dangling references 解釋
懸宕參考
  1. To avoid dangling pointers the dangerous situation where a block of memory is freed but a pointer still references it, you must delete the object only after the last reference is released

    為了避免懸空指針(一種危險的情況,即一塊內存已經被釋放了,而一個指針還在引用它) ,必須在最後的引用釋放之後才刪除對象。
  2. However, by dropping a synonym, you run the risk of leaving dangling references to the synonym that was dropped. these references will only be found at run time

    但刪除同義詞后,會留下已刪除同義詞的無關聯引用,而只有在運行時才會發現這些引用。
分享友人