The Artima Developer Community
Sponsored Link

Agile Buzz Forum
From Pollock to Panda

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
James Robertson

Posts: 29924
Nickname: jarober61
Registered: Jun, 2003

David Buck, Smalltalker at large
From Pollock to Panda Posted: Mar 19, 2006 4:39 PM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by James Robertson.
Original Post: From Pollock to Panda
Feed Title: Michael Lucas-Smith
Feed URL: http://www.michaellucassmith.com/site.atom
Feed Description: Smalltalk and my misinterpretations of life
Latest Agile Buzz Posts
Latest Agile Buzz Posts by James Robertson
Latest Posts From Michael Lucas-Smith

Advertisement

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:

  1. Load the Panda version, make a Pollock namespace, load your code, use regex to replace Pollock with Panda
  2. 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:

  1. Load up Pollock 7.3
  2. Load your code
  3. Rename the Pollock namespace to Panda (this will take a while and use lots of CPU)
  4. Use the RB Regex tool to replace Pollock with Panda
  5. Publish your code
  6. Load in to a clean image, Pollock 7.4 (Panda) and your new code
  7. Celebrate

Read: From Pollock to Panda

Topic: You Can't Change Just One Thing Previous Topic   Next Topic Topic: What Gemstone can do for you

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use