Logo

4.2 Importing Smalltalk code

Moose comes with a built-in importer for Smalltalk code. The prerequisite for using this importer is that you first need the target source code present in the Pharo image.

Once the code is present, simply press on the “Load from Smalltalk” item from the menu of the Moose Panel, and follow the steps from the opening wizard.

This importer works out of the box for code built for Pharo. For code written in other Smalltalk dialects, the code must first be made loadable into Pharo. Moose does not offer ready made solutions for these other languages, but for most known dialects, like VisualWorks, you can often find solutions for exporting the code in a file format loadable in Pharo. An important note is that the code does not have to be fully functioning. It merely needs to be loadable in the Pharo image.

User Contributed Notes

tudor (21 September 2011, 12:16 pm)

Good point. I added a note. Thanks.

mcleod (19 September 2011, 10:36 am)

I believe this page could use some more detail. How would one go about importing Smalltalk that will not "natively" load and compile in Pharo? Are there, for example, any tools that allow importing from "file out" format direct into Moose?

Add a Note