Scala: when are singleton objects constructed?

Posted by Alexey Romanov on Stack Overflow See other posts from Stack Overflow or by Alexey Romanov
Published on 2010-04-28T11:26:13Z Indexed on 2010/04/28 18:37 UTC
Read the original article Hit count: 193

Filed under:

In

object O {
  // construction code and member initialization
}

construct, when is this code going to be run?

© Stack Overflow or respective owner

Related posts about scala