If I define a package object
package com.something.else
package object more {
val time = System.currentTimeMillis
}
which is then imported somewhere into the source code.
import com.something.else.more
When is this object (and its members) initialized / built?
In other words, what determines the meaning more.time?
Is it evaluated when the program begins? Or at first access? Or at first access more?
source
share