title: access case class parameter actor
body: <p>I have a specific question that I am unsure where to put or how to find the answer. I am learning about actors in scala and I have a case class that contains the actor, which I need to reply to, in its parameters. How do I access that? It would look like this:</p>
  
  <pre class="lang-scala prettyprint-override"><code>class ActorPlayAround() extends Actor {
     def receive = {
        case GetUpdate =&gt; //I want to reply to the actor with an update
     }
  }
  
  object ActorPlayAround {
     case class GetUpdate(replyTo: ActorRef)
  }
  </code></pre>
  
  <p>I thought I would solve it like this:</p>
  
  <pre class="lang-scala prettyprint-override"><code>case GetUpdate =&gt; (replyTo which I can't access) ! Update()
  </code></pre>
  
  <p>But it doesn't seem to be working. This is only a simplified code snippet that I hope shows my struggle.</p>