Dynamic Web Development with Seaside

3.6.2Create a Name Space

Next, we should create a name space for our work. Pick Class | New | Namespace... in the System Browser. In the dialog that opens, the package and Namespace fields are already correctly filled. Enter a name, which we will call WebCounter again. In the imports field, add Seaside.* so the field contents is: private Smalltalk.* Seaside.*

Creating a name space

Then click OK. The WebCounter name space is created and selected in the System Browser, and the definition is shown as:

Smalltalk defineNameSpace: #WebCounter 
private: false
imports: 'private Smalltalk.* Seaside.*'
category: ''

Copyright © 22 April 2024 Stéphane Ducasse, Lukas Renggli, C. David Shaffer, Rick Zaccone
This book is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 license.

This book is published using Seaside, Magritte and the Pier book publishing engine.