[squeak-dev] FFI: FFI-Kernel-mt.211.mcz
commits at source.squeak.org
commits at source.squeak.org
Wed Aug 18 08:23:50 UTC 2021
Marcel Taeumel uploaded a new version of FFI-Kernel to project FFI:
http://source.squeak.org/FFI/FFI-Kernel-mt.211.mcz
==================== Summary ====================
Name: FFI-Kernel-mt.211
Author: mt
Time: 18 August 2021, 10:23:48.749508 am
UUID: ddaad2aa-6b86-a344-8a2f-0f06f5ab6489
Ancestors: FFI-Kernel-mt.210
Fixes another migration issue.
Keep #atomicTypeName as quick-return; migrate older instances in #basicInitializeAtomicTypes instead.
=============== Diff against FFI-Kernel-mt.210 ===============
Item was changed:
----- Method: ExternalType class>>basicInitializeAtomicTypes (in category 'class initialization') -----
basicInitializeAtomicTypes
"Strong references required because there is no lazy initialization like there is for struct types and array types."
AtomicTypes ifNil: [AtomicTypes := Dictionary new].
"Add new atomic types using the current configuration of AtomicTypeCodes."
AtomicTypeCodes keysDo: [:typeName |
(AtomicTypes includesKey: typeName) ifFalse: [
self newTypeForAtomicNamed: typeName]].
"Remove discarded types."
AtomicTypes keys do: [:typeName |
(AtomicTypeCodes includesKey: typeName) ifFalse: [
+ AtomicTypes removeKey: typeName]].
+
+ "Migrate older instances."
+ AtomicTypes keysAndValuesDo: [:typeName :type |
+ type setAtomicTypeName: typeName]!
- AtomicTypes removeKey: typeName]].!
More information about the Squeak-dev
mailing list
|