Now that Pollock's namespace has been replaced with Panda's namespace, we are all faced with the challenge of loading our source code in to this new namespace too.
If you're anything like WithStyle, which you hopefully aren't, you'll have plenty of classes referencing Pollock or even subclassing Pollock classes. This is a bit of a problem. How do you migrate?
Sam's two suggestions for dealing with this are:
- Load the Panda version, make a Pollock namespace, load your code, use regex to replace Pollock with Panda
- Or, file out your code, search/replace in that, file it back in after loading Panda
Needless to say the second option really isn't much of an option ;) But the first option is missing the case where you have subclasses of Pollock classes.
So here's my guide to porting to Panda:
- Load up Pollock 7.3
- Load your code
- Rename the Pollock namespace to Panda (this will take a while and use lots of CPU)
- Use the RB Regex tool to replace Pollock with Panda
- Publish your code
- Load in to a clean image, Pollock 7.4 (Panda) and your new code
- Celebrate