Compile files with references to each other in Scala -
this first day of programming scala , need build project.
so, let's have 1 file config.scala
, contains line var bestpage1:basepage = null
, file basepage.scala
, contains if(m_refer != null) m_refer.mkstring(config.refersmalldivisor) else ""
.
and when try compile 1 of them, error: not found: value config
or error: not found: value basepage
.
so how compile them both?
added: file contents
the reason it's not finding config
because config
class doesn't exist.
the scwikimetric.config
class, however, does. import , things go better, think.
Comments
Post a Comment