Eliot Miranda uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-eem.1325.mcz ==================== Summary ==================== Name: Kernel-eem.1325 Author: eem Time: 1 May 2020, 10:38:26.143286 am UUID: fdfc5299-b643-4879-a7ca-716d825f6988 Ancestors: Kernel-eem.1324 Minor clean-up from the last commit. We don't really need compiledBlock[:], so do without. =============== Diff against Kernel-eem.1324 =============== Item was changed: ----- Method: FullBlockClosure>>= (in category 'comparing') ----- = aClosure self == aClosure ifTrue: [^true]. aClosure class == self class ifFalse: [^false]. + ^startpcOrMethod = aClosure method + and: [outerContext = aClosure outerContext or: [self isClean]]! - startpcOrMethod = aClosure compiledBlock ifFalse: [^false]. - ^outerContext = aClosure outerContext or: [self isClean]! Item was removed: - ----- Method: FullBlockClosure>>compiledBlock (in category 'accessing') ----- - compiledBlock - "To be able to inherit from BlockClosure" - ^ startpcOrMethod! Item was removed: - ----- Method: FullBlockClosure>>compiledBlock: (in category 'accessing') ----- - compiledBlock: aCompiledBlock - "To be able to inherit from BlockClosure" - startpcOrMethod := aCompiledBlock! |
Hi Eliot. Now CompiledCodeInspectorTest >> #createObject is not working anymore. It does this: [:arg | arg + 2] compiledBlock ... as a quick way to get a compiled-code object. Best, Marcel
|
... would "[:arg | arg + 2] method" work instead of #compiledBlock? :-) Best, Marcel
|
In reply to this post by marcel.taeumel
Hi Marcel,
On May 4, 2020, at 2:07 AM, Marcel Taeumel <[hidden email]> wrote:
Just use method instead. I can reinstate compiledBlock if you’d like. I would rather not because, unlike method, t it was the only implementor.
|
In reply to this post by marcel.taeumel
On May 4, 2020, at 2:10 AM, Marcel Taeumel <[hidden email]> wrote:
[thisContext method] value does what one expects...
|
Hi Eliot, no worries. That send is hidden in a string. :-) We'll use #method instead of #compiledBlock. Best, Marcel
|
Free forum by Nabble | Edit this page |