[Pkg] The Trunk: Kernel-ul.1099.mcz
commits at source.squeak.org
commits at source.squeak.org
Tue Apr 25 16:52:44 UTC 2017
Levente Uzonyi uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-ul.1099.mcz
==================== Summary ====================
Name: Kernel-ul.1099
Author: ul
Time: 25 April 2017, 6:40:04.569495 pm
UUID: d06b7b82-b7b0-4896-ab30-7a5f85de7427
Ancestors: Kernel-ul.1098
- deprecated Object >> #clone
- removed #clone from subclasses
=============== Diff against Kernel-ul.1098 ===============
Item was removed:
- ----- Method: Boolean>>clone (in category 'copying') -----
- clone
- "Receiver has two concrete subclasses, True and False.
- Only one instance of each should be made, so return self."!
Item was removed:
- ----- Method: Object>>clone (in category 'copying') -----
- clone
- "Answer a shallow copy of the receiver."
- <primitive: 148 error: ec>
- | class newObject |
- ec == #'insufficient object memory' ifFalse:
- [^self primitiveFailed].
- "If the primitive fails due to insufficient memory, instantiate via basicNew: to invoke
- the garbage collector before retrying, and use copyFrom: to copy state."
- newObject := (class := self class) isVariable
- ifTrue:
- [class isCompiledMethodClass
- ifTrue:
- [class newMethod: self basicSize - self initialPC + 1 header: self header]
- ifFalse:
- [class basicNew: self basicSize]]
- ifFalse:
- [class basicNew].
- ^newObject copyFrom: self!
Item was removed:
- ----- Method: SmallFloat64>>clone (in category 'copying') -----
- clone
- "Answer the receiver, because SmallFloat64s are unique."
- ^self!
Item was removed:
- ----- Method: SmallInteger>>clone (in category 'copying') -----
- clone
- "Answer the receiver, because SmallIntegers are unique."
- ^self!
Item was removed:
- ----- Method: UndefinedObject>>clone (in category 'copying') -----
- clone
- "Only one instance of UndefinedObject should ever be made, so answer
- with self."!
More information about the Packages
mailing list