# Copyright 2005 Kevin Reid, under the terms of the MIT X license # found at http://www.opensource.org/licenses/mit-license.html ................ ? def makeWeakRef := # value: ? # value: ? def x {} # value: ? def weakRef := makeWeakRef(x, null) # value: > ? weakRef.get() == x # value: true ? def x := 44 # value: 44 XXX separate test for interp.gc() ? interp.gc() x ? [weakRef.get()] x # value: [null] x x ? weakRef x # value: