All documentation versions, including the most recent version , give the following class / record helper syntax:
type identifierName = class|record helper [(ancestor list)] for TypeIdentifierName memberList end;
And this only explains that ...
The list of ancestors is optional. It can only be specified for a helper class.
... and further not go into details. Examples of use in the rest of the documentation document simply take advantage of the fact that the ancestor list is optional. All the EMBA code I saw, as well as all the third-party code, does not use this part of the ancestor list .
So my questions are stated in the title:
- What is the purpose of
ancestor list in class helper syntax? - Where is it documented?
- Is there any use case?
source share