定义:从自动与受控维度区分的一种程序性知识,是适用于一般领域的、受意识控制的程序性知识。
在前一期文章中我们看到了,弱引用如何可以给应用程序提供当对象被程序使用时另一种到达该对象的方法,但是不会延长对象的生命周期。
In the previous installment, we saw how weak references can provide an application with an alternate means of reaching an object while it is used by the program, but without prolonging its lifetime.
我们将要学习用不用的方法来表达不同意,语气从弱到强。
We’ll learn different ways to disagree, from polite to strong.
请注意该方法如何用do - while循环来处理队列中可能存在的弱引用。
Notice how this method accounts for possible weak references in the queue with the do-while loop.
应用推荐