Intro to Packages and NameSpaces

Tagged:  •  

In GNU Smalltalk package loading and namespaces are separate.

If like me you've come from Java, it takes an example to see what this means in practice.

Here is a very simple example using sockets (found in TCP package up to 3.0.x, and Sockets package in 3.1). The example below is for 3.1 so the Sockets package is used. Sockets package documentation is at...

What I tried to do first was this...

 #!/usr/local/bin/gst -f
       PackageLoader fileInPackage: 'Sockets'.

Syndicate content

User login