In computer programming, a weak reference is a reference that does not protect the referenced object from collection by a garbage collector; unlike a strong reference. An object referenced only by weak references is considered unreachable (or weakly reachable) and so may be collected at any time. Some garbage-collected languages feature or support various levels of weak references, such as Java, C#, Python, Perl, and Lisp.
Read more about Weak Reference: Garbage Collection, Variations, Examples
Famous quotes containing the words weak and/or reference:
“Were I to buy this life of pleasure and this only chance at happiness with a few little dangers, where would be the harm? And wouldnt it still be fortunate to find a weak excuse to give her proof of my love?”
—Stendhal [Marie Henri Beyle] (17831842)
“A sign, or representamen, is something which stands to somebody for something in some respect or capacity. It addresses somebody, that is, creates in the mind of that person an equivalent sign, or perhaps a more developed sign. That sign which it creates I call the interpretant of the first sign. The sign stands for something, its object. It stands for that object, not in all respects, but in reference to a sort of idea, which I have sometimes called the ground of the representamen.”
—Charles Sanders Peirce (18391914)