Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing the default sender of ! to be Actor.noSender to keep null in on... #782

Merged
merged 2 commits into from
Oct 8, 2012

Conversation

viktorklang
Copy link
Member

...e place and have a logical alternative when deadLetters isn't present in scope.

… one place and have a logical alternative when deadLetters isn't present in scope.
…it is indeed the famous null being used here.
* Default placeholder (null) used for "!" to indicate that there is no sender of the message,
* that will be translated to the receiving system's deadLetters.
*/
final val noSender: ActorRef = null
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a tad sad, though, that this cannot be made a compiler constant (I tried some variations but couldn’t get it to work).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not even the Klang could pull that off. :/

@rkuhn
Copy link
Contributor

rkuhn commented Oct 6, 2012

LGTM

viktorklang added a commit that referenced this pull request Oct 8, 2012
Changing the default sender of ! to be Actor.noSender to keep null in on...
@viktorklang viktorklang merged commit 5b0a2ec into master Oct 8, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants