[BUG][FIX] Can't rename classes in 2.4b
Mark Guzdial
guzdial at cc.gatech.edu
Fri Apr 30 15:22:50 UTC 1999
If you try to rename classes that don't have class comments from the
browser in 2.4b, you get bitten by the nil size bug. The below code fixes
it.
'From Squeak 2.4b of April 23, 1999 on 30 April 1999 at 11:21:25 am'!
!ClassOrganizer methodsFor: 'accessing' stamp: 'mjg 4/30/1999 11:20'!
classComment: aString
"Store the comment, aString, associated with the object that refers
to the
receiver."
| commentString |
commentString _ aString.
(aString isNil) ifTrue: [commentString _ ''].
(commentString isKindOf: RemoteString)
ifTrue: [globalComment _ commentString]
ifFalse: [commentString size = 0
ifTrue: [globalComment _ nil]
ifFalse: [
self error: 'use aClass classComment:'.
globalComment _ RemoteString newString:
commentString onFileNumber: 2]]
"Later add priorSource and date and
initials?"! !
--------------------------
Mark Guzdial : Georgia Tech : College of Computing : Atlanta, GA 30332-0280
(404) 894-5618 : Fax (404) 894-0673 : guzdial at cc.gatech.edu
http://www.cc.gatech.edu/gvu/people/Faculty/Mark.Guzdial.html
More information about the Squeak-dev
mailing list
|