Hello,
Try :
Smalltalk compactClassesArray at: 5 put: nil.�
LargePositiveInteger becomeUncompact.
LargePositiveInteger becomeCompactSimplyAt: 5.
then:
�LargePositiveInteger indexIfCompact. �
is correct.
Same script is needed for LargeNegativeInteger.
I think this bug is due to the introduction of LargeInteger class in Pharo 3 (common superclass of LargePositiveInteger and LargeNegativeInteger).
Now this is strange that the script I gave you worked because if you look at�
TBehavior>>checkCanBeUncompact
"Certain classes cannot be uncompacted in CogVM. �If you download VMMaker and see the VM code, these are as defined by StackInterpreter>>#checkAssumedCompactClasses and the ones that can't be uncompacted are the following: "
({ Array. LargeNegativeInteger. LargePositiveInteger. Float. MethodContext } includes: self)
ifTrue: [ self error: 'Class ', self name, ' cannot be uncompact. ' ]
However it seems that it worked with #becomeCompactSimplyAt