[Newbies] Most elegant way to delete instances
Bert Freudenberg
bert at freudenbergs.de
Sun Sep 14 18:42:42 UTC 2008
Am 14.09.2008 um 20:15 schrieb Giuseppe Luigi Punzi Ruiz:
> Hi,
>
> I need to delete all the instances of a class.
Why?
> I would like to know, wich is the best way to do this.
>
> I'm trying this:
> IGCompany allInstances do: [ :each | each := nil].
>
> But this, doesn't works.
There is no need to "delete instances". When they are not used
anymore, they will be garbage collected automatically.
- Bert -
More information about the Beginners
mailing list