[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]

The new Constructor Bomb stuff

In the application model code, I will commonly create a schnert
without assigning the pointer anywhere; the process of construction
adds it to a dependents list which keeps it alive. Is this still OK?
Is there any change in how I do it?

A sample code fragment:

    !UserModel methodsFor: 'create'!
    create: application {ApplicationModel} with: km {KeyMaster}
    myHomeDocument _ WaldoModel make.
    User2HomeDocumentSchnert create: self with: myHomeDocument.