Page MenuHomeFeedback Tracker

[Feature Request] Method for calling parent class implementation from child class
New, UrgentPublic

Description

When calling super in a function overriden with override keyword in a modded class, super refers to the previously compiled instance of that function.

There does not appear to be a way to call the real parent class' function from EnScript currently, as super treats previously modded classes as being their inheritance parent.

The creation of a new keyword providing access to the parent class' function, bypassing all previously compiled modded instances would allow for responsible overriding of 3rd party code while maintaining correct inherited behaviour from classes in the inheritance hierarchy.

Failing a keyword, allowing explicit up-casts (perhaps Class.UpCast()) to access functions as defined in a higher scope would also have the desired effect.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
General

Event Timeline

mdc created this task.May 11 2022, 4:57 PM