Created by odersky on 2010-09-14. Updated: 2010-09-14, 10:15

Until now, the only things you could put in a package were classes, traits, and standalone objects. Scala 2.8 drops that restriction. Any kind of definition that you can put inside a class, you can also put at the top level of a package. To do so, put the definitions in a package object. Find out more here.