jastrachan | 12 Apr 12:54 2004
Picon

Re: class package


On 12 Apr 2004, at 11:36, Colin Saxton wrote:
> Can you create classes that will compile to a specific package? I 
> tried to use the package keyword with numerous errors!
>
> The reason I ask is that large projects that use groovy will need to 
> use some sort of namespacing for classes...

The package statement should work (we've heaps of tests using it).

package foo.bar

class Whatnot {
     ...
}

James
-------
http://radio.weblogs.com/0112098/

Gmane