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.