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

basepage.scala

config.scala

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

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -