This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Package or not?

No replies
chris
Joined: 2009-05-06,
User offline. Last seen 3 years 7 weeks ago.

Hello,

I have a question for using packages in the Eclipse Scala PlugIn:

In "The Scala Language Specification Version 2.7", Chapter 9.1 is the following sentence: "A compilation unit consists of a sequence of packagings, import clauses, and class and object definitions, whichmay be preceded by a package clause."

But when I try to create a new class or object without choosing a package in the plugin I get the error message "Must select an existing package.".

What is it: A mistake in the specification or a bug in the plugin?

Thanks for any answers!

Chris.

 

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland