gemoc / ale-lang

Action Language for EMF
Eclipse Public License 1.0
8 stars 6 forks source link

Add a way to call overridden methods #190

Open echebbi opened 4 years ago

echebbi commented 4 years ago

Motivation

It is sometimes useful to call overridden methods, e.g.:

class Action {

    public void perform() {
       // perform
    }

}

class DelayedAction {

    @Override
    public void perform() {
        sleep(delay);
        super.perform();
    }

}

That's currently impossible in ALE.

Proposed Solution

Provide a super keyword similar to Java's one.