defensive copy中文
保護性拷貝
例句與用法
更多例句: 下一頁- Prudence would dictate that defensive copies are needed when calling them , too
謹慎的做法是,在調用存取器方法時也使用防御性副本。 - You must also be prepared to accept the performance overhead of making defensive copies where necessary
您還要準備著接受在必要時創建防御副本的性能開銷。 - And in the absence of clear documentation , you must make defensive copies on both sides of a method call
而缺乏清楚的文檔說明時,您必須在方法調用的兩邊都創建防御副本。 - Accessors for immutable properties will always have value semantics and do not need the defensive copying on either side of the call , making them more efficient
不可變屬性的存取器將總是具有值引用,因而調用的任何一方都不需要防御性復制,這使得它們效率更高。 - Every time an object on the screen moved even the mouse probably seemed daunting at the time , and the overhead of making defensive copies probably seemed out of the question . in hindsight , the decision to make
那時,每當一個對象(甚至是鼠標)在屏幕上移動就創建一個新的point的對象創建開銷可能有些讓人生畏,而創建防御性副本的開銷則不在話下。