[squeak-dev] The Trunk: Kernel-ct.1411.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Dec 1 15:31:34 UTC 2021

Marcel Taeumel uploaded a new version of Kernel to project The Trunk:

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

Name: Kernel-ct.1411
Author: ct
Time: 7 September 2021, 11:48:46.77951 pm
UUID: eb498fd3-2dec-524a-8512-d79b816970d7
Ancestors: Kernel-eem.1408

Deprecates CompiledCode >> #messagesDo: and #sendsMessage: in favor of their 'selectors' equivalent, as requested per Kernel-eem.1321.

Cleans up contents from Object releaseNotes which are on their way into the official release notes in the squeak-app repo.

=============== Diff against Kernel-eem.1408 ===============

Item was removed:
- ----- Method: CompiledCode>>messagesDo: (in category 'scanning') -----
- messagesDo: workBlock
- 	"Evaluate aBlock with all the message selectors sent by me. Duplicate seletors are possible."
- 	"If anything should be deprecated it is messagesDo:; it can be an extension in AST/Refactoring.
- 	 This method enumerates over selectors, not messages.  c.f. Behavior>>selectorsDo: etc"
- 	^self selectorsDo: workBlock!

Item was removed:
- ----- Method: CompiledCode>>sendsMessage: (in category 'testing') -----
- sendsMessage: aSelector
- 	"eem: this should be deprecated. This method does not check if a method sends a message;
- 	 it checks if a method sends a message with a particular selector."
- 	self flag: #todo.
- 	self messagesDo: [:selector |
- 		selector = aSelector ifTrue: [^ true]].
- 	^ false!

Item was changed:
  ----- Method: Object class>>releaseNotes (in category 'documentation') -----
+ 	"This is a scratch pad of release notes for the 6.0 release this version is building towards.
- 	"This is a scratch pad of release3 notes for the 6.0 release this version is building towards.
  	 Feel free to add to this comment mention of things that should appear in the release notes.
+ 	<tbd>"
- 	 Read-only object support and read-only literals.
- 		the current VM supports a per-object read-only bit and will fail to modify objects marked with this flag bit.
- 		This affects assignments to inst vars, to indexed fields in at:put: primitives, attempts to become read-only
- 		objects into non-read-only objects, and attempts to change the class of read-only objects.  All such attempts
- 		raise a ModificationForbidden error.  The error may retry the modification once the object has been made
- 		writable.  The compiler has been modified to make all literals read-only."
  	self error: 'comment only'!

More information about the Squeak-dev mailing list