Ticket #158 (closed enhancement: fixed)
support calling the super version of a bound base method
| Reported by: | stephan | Owned by: | stephan |
|---|---|---|---|
| Priority: | major | Milestone: | OTDT_1.2.4 |
| Component: | compiler | Version: | 1.2.3 |
| Keywords: | Cc: | mosconi@… |
Description (last modified by stephan) (diff)
When adapting a base method by copying its code into a callin method, any contained super call will no longer work, because it is now out off context.
Therefor it would be desirable to support a special kind of base call
base.super.m();
that has exactly the same semantics as the original super call had. Such a call would have to be bound statically to the same method that that original super call was bound to (i.e., from the bound base class's super class). Also, no callin bindings would apply to such base-super call.
Such calls should be used with care, because they kind-of break the contract of the bound base class, which normally fully hides the overridden super method. Thus, we should consider flagging this as a form of decapsulation.
all news
RSS feed