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

Scala actor

7 replies
jagadeesh
Joined: 2011-05-09,
User offline. Last seen 1 year 22 weeks ago.

Hi
how to implement a scala actor class can any send for this example i
need to get google map need to show with comet

Viktor Klang
Joined: 2008-12-17,
User offline. Last seen 1 year 27 weeks ago.
Re: Scala actor
Dude, seriously, spamming won't help your case at all.

If your problem was so easy that anyone here could just drop a line or two of code and that would implement google maps using comet and actors, wouldn't it be very weird that no one has answered yet?

I think you should start by actually reading some tutorials, blog posts so you get a firm grip on what you are supposed to do.

Cheers,


On Thu, May 12, 2011 at 11:59 AM, jaggu <mjagadeeshbabu@gmail.com> wrote:
Hi
how to implement a scala actor class can any send for this example i
need to get google map need to show with comet

jagadeesh
Joined: 2011-05-09,
User offline. Last seen 1 year 22 weeks ago.
Re: Scala actor
Hi 
Yes i can do that  sorry for inconvience

Thanks
Jagadeesh


2011/5/12 √iktor Ҡlang <viktor.klang@gmail.com>
Dude, seriously, spamming won't help your case at all.

If your problem was so easy that anyone here could just drop a line or two of code and that would implement google maps using comet and actors, wouldn't it be very weird that no one has answered yet?

I think you should start by actually reading some tutorials, blog posts so you get a firm grip on what you are supposed to do.

Cheers,


On Thu, May 12, 2011 at 11:59 AM, jaggu <mjagadeeshbabu@gmail.com> wrote:
Hi
how to implement a scala actor class can any send for this example i
need to get google map need to show with comet


Viktor Klang
Joined: 2008-12-17,
User offline. Last seen 1 year 27 weeks ago.
Re: Scala actor
Hi,

don't worry about it, we are all beginners at some point.

Cheers,


On Thu, May 12, 2011 at 12:33 PM, jaggu <mjagadeeshbabu@gmail.com> wrote:
Hi 
Yes i can do that  sorry for inconvience

Thanks
Jagadeesh


2011/5/12 √iktor Ҡlang <viktor.klang@gmail.com>
Dude, seriously, spamming won't help your case at all.

If your problem was so easy that anyone here could just drop a line or two of code and that would implement google maps using comet and actors, wouldn't it be very weird that no one has answered yet?

I think you should start by actually reading some tutorials, blog posts so you get a firm grip on what you are supposed to do.

Cheers,


On Thu, May 12, 2011 at 11:59 AM, jaggu <mjagadeeshbabu@gmail.com> wrote:
Hi
how to implement a scala actor class can any send for this example i
need to get google map need to show with comet


Kevin Wright 2
Joined: 2010-05-30,
User offline. Last seen 26 weeks 4 days ago.
Re: Scala actor


On 12 May 2011 11:20, "√iktor Ҡlang" <viktor.klang@gmail.com> wrote:
>
> Dude, seriously, spamming won't help your case at all.
>
> If your problem was so easy that anyone here could just drop a line or two of code and that would implement google maps using comet and actors, wouldn't it be very weird that no one has answered yet?
>
> I think you should start by actually reading some tutorials, blog posts so you get a firm grip on what you are supposed to do.
>
> Cheers,
> √
>

And the #legendofklang strikes again :)

>
> On Thu, May 12, 2011 at 11:59 AM, jaggu <mjagadeeshbabu@gmail.com> wrote:
>>
>> Hi
>> how to implement a scala actor class can any send for this example i
>> need to get google map need to show with comet
>
>

Philippe Lhoste
Joined: 2010-09-02,
User offline. Last seen 42 years 45 weeks ago.
Re: Scala actor

On 12/05/2011 12:20, √iktor Ҡlang wrote:
> Dude, seriously, spamming won't help your case at all.

Spamming is the word... I have rarely seen such a duplication of the same question in
mailing lists and forums I read. All this in less than 2 hours (like if the whole world is
awake and ready to answer every question...).

jaggu, for your information, "newbie questions & programming experiences and questions"
are supposed to be asked in the scala-user list. But don't start spamming there as well! ;-)

That said, no bad feelings, you just have to learn mail etiquette as well as the APIs... :-D

fento
Joined: 2011-05-28,
User offline. Last seen 42 years 45 weeks ago.
Actor

import scala.actors._
import scala.actors.Actor._

object demosample extends Actor
{
private var chats:List[String]=Nil
def act=loop{
react{
case s:String=>chats::=s
for(i<-1 to 10){
println("chat")}
}
}
this.start
}

hi can any one give reply for this scala actor just i have implemented
but ..
compile: scalac demosample.scala
scala demosample
scala>scala> demosample.act
java.lang.AssertionError: assertion failed: react on channel belonging
to other actor
at scala.Predef$.assert(Predef.scala:91)
at scala.actors.ReplyReactor$class.react(ReplyReactor.scala:
108)
at demosample$.scala$actors$Actor$$super
$react(demosample.scala:4)
at scala.actors.Actor$class.react(Actor.scala:606)
at demosample$.react(demosample.scala:4)
at demosample$$anonfun$act$1.apply(demosample.scala:8)
at demosample$$anonfun$act$1.apply(demosample.scala:8)
at scala.actors.Reactor$class.seq(Reactor.scala:280)
at demosample$.seq(demosample.scala:4)
at scala.actors.Reactor$$anon$3.andThen(Reactor.scala:258)
at scala.actors.Combinators$class.loop(Combinators.scala:26)
at demosample$.loop(demosample.scala:4)
at demosample$.act(demosample.scala:7)
at .(:6)
at .

Joshua.Suereth
Joined: 2008-09-02,
User offline. Last seen 32 weeks 5 days ago.
Re: Actor

You dont need to call act directly, start in yhe conatructor will.   Just fire it a message.

On May 28, 2011 3:42 AM, "fento" <smithfento@gmail.com> wrote:
> import scala.actors._
> import scala.actors.Actor._
>
> object demosample extends Actor
> {
> private var chats:List[String]=Nil
> def act=loop{
> react{
> case s:String=>chats::=s
> for(i<-1 to 10){
> println("chat")}
> }
> }
> this.start
> }
>
> hi can any one give reply for this scala actor just i have implemented
> but ..
> compile: scalac demosample.scala
> scala demosample
> scala>scala> demosample.act
> java.lang.AssertionError: assertion failed: react on channel belonging
> to other actor
> at scala.Predef$.assert(Predef.scala:91)
> at scala.actors.ReplyReactor$class.react(ReplyReactor.scala:
> 108)
> at demosample$.scala$actors$Actor$$super
> $react(demosample.scala:4)
> at scala.actors.Actor$class.react(Actor.scala:606)
> at demosample$.react(demosample.scala:4)
> at demosample$$anonfun$act$1.apply(demosample.scala:8)
> at demosample$$anonfun$act$1.apply(demosample.scala:8)
> at scala.actors.Reactor$class.seq(Reactor.scala:280)
> at demosample$.seq(demosample.scala:4)
> at scala.actors.Reactor$$anon$3.andThen(Reactor.scala:258)
> at scala.actors.Combinators$class.loop(Combinators.scala:26)
> at demosample$.loop(demosample.scala:4)
> at demosample$.act(demosample.scala:7)
> at .<init>(<console>:6)
> at .<c...
> i got error like this cab you pease respond any one why this
> came .there isnop error in my scala code

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