[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]
The new Constructor Bomb stuff
- To: <mark>
- Subject: The new Constructor Bomb stuff
- From: Ravi Pandya <ravi>
- Date: Thu, 9 Aug 90 16:52:49 PDT
- Cc: <xtech@xxxxxxxxxxx>
- In-reply-to: <MarkS.Miller'smessageofWed>,11 PDT <9008090645.AA12072@vlad.>
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?
--ravi
A sample code fragment:
!UserModel methodsFor: 'create'!
create: application {ApplicationModel} with: km {KeyMaster}
....
myHomeDocument _ WaldoModel make.
User2HomeDocumentSchnert create: self with: myHomeDocument.
....