Process>> sstTerminationBlocks - Initialization problem

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

Process>> sstTerminationBlocks - Initialization problem

Postby jp. » Wed Jan 21, 2009 5:18 am

Hi.
I think there is an inconsistency in how ##esTerminationBlocks is initialized.
Here, it is initialized with #()
Process>>sstTerminationBlocks
"Answer the receiver's termination blocks, a collection."

attributes isNil ifTrue: [^#()].
^attributes at: ##esTerminationBlocks ifAbsent: [#()]

And here, with an OrderedCollection new
Process>>addTerminationBlock: block
"Add to the receiver, a block which is executed when the receiver is terminated."

^(self attributes at: ##esTerminationBlocks ifAbsentPut: [OrderedCollection new])
add: block

Process>>removeTerminationBlock: block
"Add to the receiver, a block which is executed when the receiver is terminated."

^(self attributes at: ##esTerminationBlocks ifAbsentPut: [OrderedCollection new])
remove: block ifAbsent: []

Thanks,
JP
jp.
 
Posts: 4
Joined: Wed Dec 10, 2008 2:49 am

Re: Process>> sstTerminationBlocks - Initialization problem

Postby Diane Engles » Mon Jan 26, 2009 11:04 am

Hi,

Thanks for your report.
I agree that it is an inconsistency, and have opened case #38865 to enter it into our defect tracking system.

Diane
Instantiations Smalltalk Support
diane@instantiations.com
Diane Engles
Moderator
 
Posts: 66
Joined: Mon Oct 16, 2006 2:40 pm


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest