- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Actor is not supported on .net framework ?
Thu, 2009-02-05, 13:27
hi,
I just compile the pingpong example using scalac-net , but error occurs:
Many thanks!
I just compile the pingpong example using scalac-net , but error occurs:
C:\Users\tony\scala\pingpong>scalac-net pingpong.scalaIs there a feature list that supports .net in scala?
pingpong.scala:1: error: value actors is not a member of package scala
import scala.actors.Actor
^
pingpong.scala:2: error: value actors is not a member of package scala
import scala.actors.Actor._
^
pingpong.scala:16: error: value start is not a member of Ping
ping.start
^
pingpong.scala:17: error: value start is not a member of Pong
pong.start
^
pingpong.scala:18: error: value ! is not a member of Ping
ping ! Start
^
5 errors found
Many thanks!
Thu, 2009-02-05, 13:57
#2
Re: Actor is not supported on .net framework ?
The same problem with addressbook.scala, but this time is in-line xml feature .
C:\Users\tony\scala\address>scalac-net addressbook.scala
addressbook.scala:35: error: value xml is not a member of package scala
<head>
^
addressbook.scala:53: error: value xml is not a member of package scala
<html>
^
addressbook.scala:16: error: value xml is not a member of package scala
<table cellpadding="2" cellspacing="0">
^
three errors found
On Thu, Feb 5, 2009 at 8:26 PM, lu dongping <outersky@gmail.com> wrote:
C:\Users\tony\scala\address>scalac-net addressbook.scala
addressbook.scala:35: error: value xml is not a member of package scala
<head>
^
addressbook.scala:53: error: value xml is not a member of package scala
<html>
^
addressbook.scala:16: error: value xml is not a member of package scala
<table cellpadding="2" cellspacing="0">
^
three errors found
On Thu, Feb 5, 2009 at 8:26 PM, lu dongping <outersky@gmail.com> wrote:
hi,
I just compile the pingpong example using scalac-net , but error occurs:C:\Users\tony\scala\pingpong>scalac-net pingpong.scalaIs there a feature list that supports .net in scala?
pingpong.scala:1: error: value actors is not a member of package scala
import scala.actors.Actor
^
pingpong.scala:2: error: value actors is not a member of package scala
import scala.actors.Actor._
^
pingpong.scala:16: error: value start is not a member of Ping
ping.start
^
pingpong.scala:17: error: value start is not a member of Pong
pong.start
^
pingpong.scala:18: error: value ! is not a member of Ping
ping ! Start
^
5 errors found
Many thanks!
Thu, 2009-02-05, 14:07
#3
Re: Actor is not supported on .net framework ?
This is indicative of a more general problem: It is impossible to write correct concurrent code in Scala, because there is no defined memory model.
You can write Scala code which is correct for concurrency with respect to the current implementation on the JVM, but there's no guarantee that it will be correct on .NET or that it will continue to be correct on future implementations of Scala.
On Thu, Feb 5, 2009 at 12:37 PM, Erik Engbrecht <erik.engbrecht@gmail.com> wrote:
You can write Scala code which is correct for concurrency with respect to the current implementation on the JVM, but there's no guarantee that it will be correct on .NET or that it will continue to be correct on future implementations of Scala.
On Thu, Feb 5, 2009 at 12:37 PM, Erik Engbrecht <erik.engbrecht@gmail.com> wrote:
Scala Actors depend on a lot of fairly low-level Java code, so no, they are not currently available on .NET.
On Thu, Feb 5, 2009 at 7:26 AM, lu dongping <outersky@gmail.com> wrote:
hi,
I just compile the pingpong example using scalac-net , but error occurs:
C:\Users\tony\scala\pingpong>scalac-net pingpong.scalaIs there a feature list that supports .net in scala?
pingpong.scala:1: error: value actors is not a member of package scala
import scala.actors.Actor
^
pingpong.scala:2: error: value actors is not a member of package scala
import scala.actors.Actor._
^
pingpong.scala:16: error: value start is not a member of Ping
ping.start
^
pingpong.scala:17: error: value start is not a member of Pong
pong.start
^
pingpong.scala:18: error: value ! is not a member of Ping
ping ! Start
^
5 errors found
Many thanks!
--
http://erikengbrecht.blogspot.com/
On Thu, Feb 5, 2009 at 7:26 AM, lu dongping <outersky@gmail.com> wrote:
--
http://erikengbrecht.blogspot.com/