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

Brian.R.Atkins (18 November 2013, 9:31 pm)

You have me going around in circles. I down load the one click image and immediately found I had to install Moose in Pharo to use it on smalltalk code. At minimum one-click should let me file in smalltalk code ( via some button ) or give me work space to Load from Monticello.

 

 I am coming back to smalltalk after 15 year away and am finding real promise , however the state of documentation makes its hard to commit.

 

 P.S. even this comment window has a bug. I misspell word and it will indeed catch it and give me suggestion but will not replace it.( I am on windows 7).

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