martin odersky wrote:
> I am not sure what scaladoc does, but you could write a package object
> and annotate this. E.g.
>
> package myproject
>
> /** The myproject.mypackage package contains the folloing items: ...
> */
> package object mypackage {
> // could be empty
> }
And where would I place the annotations?
This compiles with 2.8 snapshot:
package com.acme
package object frob
However, this doesn't:
package com.acme
@WhateverAnnot
package aboject frob
What am I missing? And how would I name the compilation unit?
`frob.scala' or `DoesntMatter.scala'? I actually use package
annotations, but for the time being, I keep them in ordinary
`package-info.java' files, which works fine, so this is not a major
issue for me. But it would of course be nice to express this in Scala.
---Ph.