The Inbox: Kernel-eem.1320.mcz

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

The Inbox: Kernel-eem.1320.mcz

commits-2
A new version of Kernel was added to project The Inbox:
http://source.squeak.org/inbox/Kernel-eem.1320.mcz

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

Name: Kernel-eem.1320
Author: eem
Time: 25 March 2020, 9:01:48.950717 pm
UUID: 5e03652f-dca4-40fb-991e-ec71a89bb282
Ancestors: Kernel-eem.1319

Use Compiler-eem.421 to make Object class>>readFrom: answer writable collection literals.

=============== Diff against Kernel-eem.1319 ===============

Item was changed:
  ----- Method: Object class>>basicReadFrom: (in category 'instance creation') -----
  basicReadFrom: textStringOrStream
  "Create an object based on the contents of textStringOrStream."
 
  | object |
+ (Compiler couldEvaluate: textStringOrStream) ifFalse:
+ [^ self error: 'expected String, Stream, or Text' translated].
+ object := self environment beCurrentDuring:
+ [Compiler evaluate: textStringOrStream writableCollectionLiterals: true environment: self environment].
+ (object isKindOf: self) ifFalse:
+ [self error: ('{1} expected' translated format: {self name})].
- (Compiler couldEvaluate: textStringOrStream)
- ifFalse: [^ self error: 'expected String, Stream, or Text' translated].
- object := self environment beCurrentDuring: [
- Compiler evaluate: textStringOrStream environment: self environment].
- (object isKindOf: self) ifFalse: [self error: ('{1} expected' translated format: {self name})].
  ^object!