- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
#include for scala script ?
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.
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.










Re: #include for scala script ?
On 27 January 2012 10:02, david crosson <crosson [dot] david [at] gmail [dot] com> wrote:
Re: #include for scala script ?
:load is only available for scala console, not for scripts.
Re: #include for scala script ?
On 27 January 2012 17:51, david crosson <crosson [dot] david [at] gmail [dot] com> wrote:
Re: #include for scala script ?
Cheers,
Ken
On 27 January 2012 18:07, Ken Scambler <ken [dot] scambler [at] gmail [dot] com> wrote:
Re: #include for scala script ?
A script #include directive implementation example :
http://www.crosson.org/2012/01/simplifying-scala-scripts-adding.html
It works fine and allow sharing code between scripts.
Regards.