The Trunk: Kernel-dtl.1056.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Kernel-dtl.1056.mcz

commits-2
David T. Lewis uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-dtl.1056.mcz

==================== Summary ====================

Name: Kernel-dtl.1056
Author: dtl
Time: 2 February 2017, 1:48:45.677072 am
UUID: f56b3bcb-a051-481b-a90c-024a72acc1d7
Ancestors: Kernel-dtl.1055

Fix typo in error message

=============== Diff against Kernel-dtl.1055 ===============

Item was changed:
  ----- Method: Behavior>>basicNew: (in category 'instance creation') -----
  basicNew: sizeRequested
  "Primitive. Answer an instance of this class with the number of indexable
  variables specified by the argument, sizeRequested.  Fail if this class is not
  indexable or if the argument is not a positive Integer, or if there is not
  enough memory available. Essential. See Object documentation whatIsAPrimitive.
 
  If the primitive fails because space is low then the scavenger will run before the
  method is activated.  Check args and retry via handleFailingBasicNew: if they're OK."
 
  <primitive: 71 error: ec>
  (ec == #'insufficient object memory') ifTrue:
  [^self handleFailingBasicNew: sizeRequested].
  (ec == #'bad argument') ifTrue:
+ [self error: self printString, ' called #basicNew: with invalid argument ', sizeRequested].
- [self error: self printString, ' called #basicNew: with invalid arugment ', sizeRequested].
  self isVariable ifFalse:
  [self error: self printString, ' cannot have variable sized instances'].
  self primitiveFailed!