Warning! Two Newbie questions!

Aaron J Reichow reic0024 at d.umn.edu
Sat Apr 15 06:44:49 UTC 2000


I'm new to Squeak, and Smalltalk in general.  I've posted some stuff here
already, but there was an actual intro.

I've a couple questions about Squeak.

I know Smalltalk does automagic garbage collection.  But what does it
collect?

For example, if I'm playing around with some classes in the workspace, and
create a new instance of a class, for example the BankAccount class (which
was created from the standard tutorial).

But I did this in the main MVC-driven screen.  When I did "b :=
BankAccount new." I was asked if I wanted to define a new global variable,
and found out I had to, or the object wouldn't be created.

I've sinced figured out to play with things in a Morphic project.  :)

Do I have to manually delete that object when I'm done playing with it?
How will the VM know when to delete it?  When it expires after a period of
time?

My second questions is regarding MIDI facilities.  I began implementing a
project in Python, but decided to try doing it in Squeak (for a bunch of
reasons!).  One of the things I need to do, is output a string of music
(presumably a Collection of instr objects or an AbstractSound
noteSequenceOn: instr object), to a MIDI file.  Whilst browsing the
classes, and doing a search, I only came up with a MIDIFileReader.


Thanks!
Aaron





More information about the Squeak-dev mailing list