Marcel Taeumel uploaded a new version of VMMaker to project VM Maker: http://source.squeak.org/VMMaker/VMMaker.oscog-mt.3344.mcz
==================== Summary ====================
Name: VMMaker.oscog-mt.3344 Author: mt Time: 21 November 2023, 3:09:43.213933 pm UUID: 3c896091-d708-ba41-9586-a2b2c2083e68 Ancestors: VMMaker.oscog-eem.3343
Fixes regression from 3340 where booleans were no longer supported as initializationOptions. Add some commentary. Use #collect: and #pairsDo: instead of manual, C-style, #to:do: enumeration here.
=============== Diff against VMMaker.oscog-eem.3343 ===============
Item was changed: ----- Method: VMMaker>>options: (in category 'initialize') ----- options: anArrayOfPairs + + self assert: [anArrayOfPairs size even]. + (anArrayOfPairs + collect: [:each | + self assert: [each isSymbol "e.g., #MULTIPLEBYTECODESETS" + or: [each isBoolean] "i.e., true or false to configure the aspect" + or: [each isBehavior and: [each isMeta not]] "e.g., ObjectMemory"]. + (each isBoolean or: [each isSymbol]) + ifTrue: [each] + ifFalse: [each name "i.e., class name"]]) + pairsDo: [:key :value | + optionsDictionary at: key put: value]. - self assert: anArrayOfPairs size even. - 1 to: anArrayOfPairs size by: 2 do: - [:i| - [:key :value| optionsDictionary at: key put: value] - valueWithArguments: - ((i to: i + 1) collect: - [:j| | value | - value := anArrayOfPairs at: j. - self assert: (value isSymbol or: [value isBehavior and: [value isMeta not]]). - value isSymbol ifTrue: [value] ifFalse: [value name]])]. "Now clear any stale/broken options in the actual InitializationOptions variable..." VMClass initializeWithOptions: optionsDictionary!
vm-dev@lists.squeakfoundation.org