Hello everyone, I'm trying to move some of our code from VA Smalltalk over to Pharo using a self-made importer and have encountered the following issue I need help with:
A few of our methods are very large in size. For example, we have a method that creates a huge Dictionary with specific keys and values on startup and stores it in a class variable for immediate access. This method works fine in VA Smalltalk, but if I attempt to compile the same source code in Pharo (programmatically or via copy paste using the interface) I'm getting '*Error: genPushLiteral: index index 256 is out of range 0 to 255*' in OpalEncoderForV3PlusClosures. I'm getting the same error for some other methods. If I understand this correctly, the method simply exceeds the maximum number of literals, but it works fine in VA Smalltalk. Is there a way to increase this limit or bypass this issue without having to rework our implementation? Offtopic: Does anybody if there is a package which adds a support layer for imported VA Smalltalk code? I know there is one for Pharo->VA on VASTGoodies but I couldn't find one for the other way around. Kind regards, Patrick Scherer