This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Another question, compiler problem?

No replies
Job Honig
Joined: 2009-08-17,
User offline. Last seen 42 years 45 weeks ago.

I was trying to do this:

class RelativePathName (thePathName : String)

extends PathName
(new java.io.File (WORKING_DIRECTORY,
normalizeName (thePathName))) {

And defined WORKING_DIRECTORY and normalizeName in the companion object
as privates. That didn't work. Making them public DOES work, but I thought
the class and the object recognize each others names?

Job

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland