- About Scala
- In the Enterprise
- Scala Community
- Language Research
- In the Press
- The Scala Team
- Scala's Prehistory
- Contact Us
- Learning Scala
- Tour of Scala
- Scala API
- Setup & Getting Started
- Programming Guides
- Other Guides
- Code Examples
- Scala Developers
Tue, 2010-09-28, 03:47
Am I doing something wrong here? Shouldn't I expect to see a MyScript.class in the same directory as MyScript.scala? Is it being saved to some other directory?
[m410@m410 temp]% vi MyScript.scala
[m410@m410 temp]% scala-2.8 -savecompiled
Welcome to Scala version 2.8.0.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_20).
Type in expressions to have them evaluated.
Type :help for more information.
scala> :load MyScript.scala
defined class MyScript
res0: MyScript = MyScript(hello)
[m410@m410 temp]% ls -lh
-rw-r--r-- 1 m410 staff 32B Sep 27 22:39 MyScript.scala
drwxr-xr-x 3 m410 staff 102B Sep 27 22:38 out
drwxr-xr-x 5 m410 staff 170B Sep 27 15:42 ...
out is empty as well and I tried loading the script with '-i MyScript.scala' with the same none result.