Fuhrmanator
Fuhrmanator

Reputation: 12882

How to create a package using the browser in Pharo?

For a newbie in Pharo, how to create a package? The MOOC exercise says "Using the Browser create a package," but how?

Upvotes: 3

Views: 383

Answers (2)

Stephan Eggermont
Stephan Eggermont

Reputation: 15907

And the classical way is to just define a new class and type in the package name you want in the definition.

Upvotes: 2

Fuhrmanator
Fuhrmanator

Reputation: 12882

You'll find an answer at 3.2 Creating a new Package in Pharo by Example:

From the World menu, open a System Browser. Right-click on an existing package in the Package pane and select Add package... from the menu.

However, the tools change frequently. It's sometimes New package. Here's what it looks like (today) in three different versions of Pharo:

Pharo 8

Creating a new package in Pharo 8

Pharo 7

Creating a new package in Pharo 7

Pharo 6

To open Nautilus, you have to left-click first, then choose System Browser:

Creating a new package in Pharo 6

Upvotes: 6

Related Questions