logo       

Re: Very Basic Squeak information: msg#00145

lang.smalltalk.squeak.beginners

Subject: Re: Very Basic Squeak information

Hi!

"Ralph Johnson" <johnson@xxxxxxxxxxx> wrote:
> > - Is there such a thing as command line squeak? Such that I can create my
> > objects, then put the basic program logic in a file and fire it off from the
> > command line?
>
> Sort of. You can create a specialized image that you can execute from
> the command line. But it isn't a text file.

Yes, the image is like a "snapshot" of RAM with live objects in it. So
an image is not the same thing as for example a jar-file in the Java
world which is just a bunch of class definitions - not objects.

BUT... you can still start the Squeak VM with an image AND a "script"
file fed into it on the command line. The VM then starts the image which
in turn has standard mechanisms to examine the command line starting it,
extracting arguments and possible opening, compiling and executing
Smalltalk statements found in a file given as a URI on the command line.

regards, Göran


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise