Hi!

Sorry, AFAIK, implicit parameters are only for Scala, aren't they?

So, in Java you must supply explicitly the sender, am I right?

I'm too implementing Akka ideas in C# (only based on API and semantic,
using TDD), and today, I had to send the sender explicity in Pi example:
https://github.com/ajlopez/Aktores/blob/a822da2266edf9f8a2d8407c317a6008153ab70a/Samples/Pi/Actors/Master.cs#L43

I guess that is the only way to implement it in C#. Any other idea?

Ah! I just found that your Java example
http://doc.akka.io/docs/akka/2.0.2/intro/getting-started-first-java.html
has the self EXPLICITLY

And your Scala example has an implicit argument... interesting ;-)
http://doc.akka.io/docs/akka/2.0.2/intro/getting-started-first-scala.html

Angel "Java" Lopez
@ajlopez



On Wed, Jan 1, 2014 at 12:51 AM, √iktor Ҡlang <[email protected]>wrote:

> Inside an Actor, the self-reference is implicit. Since the sender argument
> is implicit then implicit resolution takes place before a default value is
> applied.
>
> Cheers,
> V
> On Jan 1, 2014 10:48 AM, "Roger Alsing" <[email protected]> wrote:
>
>> According to the documentation, tell with only a message arg will be
>> called with "this" as sender:
>>
>> other.tell(msg);              // uses this actor as sender reference, reply 
>> goes to us
>>
>>
>> Is this really the case?
>> When I look at the source for actorRef.scala , the default value used is
>> "actorRef.NoSender".
>>
>> Is this behavior different if the actorref is a child ref?
>>
>> --
>> >>>>>>>>>> Read the docs: http://akka.io/docs/
>> >>>>>>>>>> Check the FAQ: http://akka.io/faq/
>> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> Visit this group at http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>  --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ: http://akka.io/faq/
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: http://akka.io/faq/
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to