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

'Scripts'

2 replies
Geoffrey Wiseman
Joined: 2009-06-22,
User offline. Last seen 42 years 45 weeks ago.

In following an example early in the O'Reilly Labs "Programming Scala", I
noticed that it seems like Scala supports a script-like ability to put code
outside of any object; not sure if that's just translating into an
application (object with main()) or what the mechanism is, but scala's fine
with it, and the Scala Eclipse plugin doesn't seem to be; is this by design?
Is there a way around it?

By way of example:
http://www.quicksnapper.com/geoffrey.wiseman/image/scala-eclipse-plugin-...

Alefas
Joined: 2009-06-23,
User offline. Last seen 33 weeks 5 days ago.
Re: 'Scripts'

You can use scripts in IntelliJ IDEA Scala plugin. And simply run it from
context menu.

Geoffrey Wiseman wrote:
>
> In following an example early in the O'Reilly Labs "Programming Scala", I
> noticed that it seems like Scala supports a script-like ability to put
> code outside of any object; not sure if that's just translating into an
> application (object with main()) or what the mechanism is, but scala's
> fine with it, and the Scala Eclipse plugin doesn't seem to be; is this by
> design? Is there a way around it?
>
> By way of example:
> http://www.quicksnapper.com/geoffrey.wiseman/image/scala-eclipse-plugin-...
>
>

Alefas
Joined: 2009-06-23,
User offline. Last seen 33 weeks 5 days ago.
Re: 'Scripts'

You can use scripts in IntelliJ IDEA Scala plugin. And simply run it from
context menu.

Geoffrey Wiseman wrote:
>
> In following an example early in the O'Reilly Labs "Programming Scala", I
> noticed that it seems like Scala supports a script-like ability to put
> code outside of any object; not sure if that's just translating into an
> application (object with main()) or what the mechanism is, but scala's
> fine with it, and the Scala Eclipse plugin doesn't seem to be; is this by
> design? Is there a way around it?
>
> By way of example:
> http://www.quicksnapper.com/geoffrey.wiseman/image/scala-eclipse-plugin-...
>
>

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