Smalltalk 有自动垃圾收集功能吗?那么,这是否是说我可以做类似以下的事情而没有意外的副作用?
transactions := Set new.
transactions add: tran1.
transactions add: tran2.
transactions add: tran3.
transactions add: tran4.
...
transactions add: tran899.
transactions add: tran900.
||| ~~ Do some stuff ~~ |||
transactions post.
transactions := Set new.