On 8/22/11 13:22 , Niclas Hedhman wrote:
So what I recall I saw was the usage of super in "with" chained traits.
http://books.google.com/books?id=MFjNhTjeQKkC&pg=PA228&lpg=PA228&dq=scala+super+trait&source=bl&ots=FLmh-MMSvn&sig=tOnH2GbH6McsgorhmUQjNGkVBeY&hl=en&ei=ZeVRToq8OonLrQeMmqX6DQ&sa=X&oi=book_result&ct=result&resnum=2&ved=0CBsQ6AEwATgK#v=onepage&q=scala%20super%20trait&f=false
class Animal
trait Furry extends Animal
trait HasLegs extends Animal
trait FourLegged extends HasLegs
class Cat extends Animal with Furry with FourLegged
The "super" keyword called within the traits is compiler special and
will follow the 'with' links as well as the inheritence...
Right, but in the end it's just static methods calling other static methods.
/Rickard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev