klauso/PLT2011 — pull request #9 by el-chuck (2011-11-25 18:45:44+00:00)
Title: Mark&Sweep GC

In my opinion the mark function has to _mark_ the seed values too. Or am i missing something?

example:
val blub = wth('box, NewBox(1), Seq(NewBox(2),OpenBox('box)))

eval(blub, List(scala.collection.mutable.Map.empty), new MarkAndSweepStore(1))
starting gc, stack = List(Map('box -> AddressV(0)), Map()), store = ArraySeq(NumV(1))
gc complete, store = ArraySeq(null), number of free slots = 1
res4: Value = NumV(2)