How to call mixin superclass function?

2 views
Skip to first unread message

Chris Murphy

unread,
Nov 2, 2010, 11:31:20 PM11/2/10
to visage...@googlegroups.com

I have this class

public class AcknowledgedAlarms extends AlarmsList
{
    override public function repositionAlarmWidgets(): Void
    {
        (super as AlarmsList).repositionAlarmWidgets();
        //more code...
    }
}

The superclass, AlarmsList - is like this:

public mixin class AlarmsList
{
    public function repositionAlarmWidgets(): Void
    {
        //method body code...
    }
}

I get a StackOverflowError when I call repositionAlarmWidgets() on an instance of an AcknowledgedAlarms. What is the syntax I ought to be using here?

Please let me know if there's a better forum I should have used...

thanks ~ Chris Murphy
Seaweed Software P/L (www.strandz.org)


Reply all
Reply to author
Forward
0 new messages