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

Antw.: #include for scala script ?

No replies
barden
Joined: 2010-03-30,
User offline. Last seen 33 weeks 5 days ago.
Quite likely that works in interactive mode but not as compiled one, because :load is not valid scala code

Gesendet mit meinem HTC

----- Reply message -----
Von: "Ken Scambler" <ken.scambler@gmail.com>
An: "scala-user@googlegroups.com" <scala-user@googlegroups.com>
Betreff: [scala-user] #include for scala script ?
Datum: Fr., Jan. 27, 2012 00:24



Isn't this what :load does?

On 27 January 2012 10:02, david crosson <crosson.david@gmail.com> wrote:
Hi,
I did some search and didn't find any default way to include a scala script file inside an other one, in order for example to share common definitions accross multiple scala scripts. So I made some experiments, and share the results there : http://www.crosson.org/2012/01/simplifying-scala-scripts.html . I was wondering If there is already some initiative about this kind of feature ? May be it is already scheduled in a next scala release ?
thanks.

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