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:
“A country is strong which consists of wealthy families, every member of whom is interested in defending a common treasure; it is weak when composed of scattered individuals, to whom it matters little whether they obey seven or one, a Russian or a Corsican, so long as each keeps his own plot of land, blind in their wretched egotism, to the fact that the day is coming when this too will be torn from them.”
—HonorĂ© De Balzac (17991850)
“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)