You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the Eclipse worksheet, wrapping a statement in an object does not change the fact that it gets executed when the worksheet is run, but in our current worksheet support, the only output we see is // defined object Foo
The text was updated successfully, but these errors were encountered:
This is running Scala IDE 4.7.0 with Scala 2.12.3.
The "equivalent" worksheet in Dotty IDE would be:
println("Hello, world!") //> Hello, world!objectO {
println("Hello from O")
} //> defined object O
println("Goodbye!") //> Goodbye!
In Dotty IDE, the worksheet is implicitly wrapped in an object. It is done implicitly, because unlike Scala IDE, we don't have a wizard that will create the structure of the worksheet for the user.
Are you suggesting that we should detect whether the user is doing the wrapping by himself?
In the Eclipse worksheet, wrapping a statement in an object does not change the fact that it gets executed when the worksheet is run, but in our current worksheet support, the only output we see is
// defined object Foo
The text was updated successfully, but these errors were encountered: