[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

[console] How to load a smalltalk file?

You can load a smalltalk file evaluating the javaScript expression:
    fileIn("pathToMyFile.st")

Note The smalltalk code is filledIn in the current system. You can save the image and load it in other system later.

In case you also want to generate the (javascript) executable version of the smalltalk file, you can evaluate:
    emmit("pathToMyFile.st")

Uploaded Image: alert.gifThe emmit() function will recompile the smalltalk code if the generated (.st.js) file is older than source. In case of earlier generated file is present, the file will be loaded (without smalltalk recompilation) from binary file.