Scala Mixins with Akka

Good morning,

I am tying to work with Scala Mixins and I need to override some Actor functions, is this possible please? And if yes, could you kindly guide me on how to work about it please ?

Thanks a lot and good day :slight_smile:

The question’s too broad to answer, frankly – the answer is, “maybe, but it depends on what you are trying to do”. Scala (like most compiled languages) does not let you just casually override anything, the way you can in some dynamic languages.

So this needs a lot more detail of exactly what you’re trying to do…

Simplest answer:

Extend Actor, override the methods you want to override. If you run into problems, come back to the list and ask more specific questions about the issues you are seeing.

Brian Maso