Little John wrote:Sicro, you know how Extends works.
You just think that that isn't the proper keyword for this purpose, right?
Exactly.
The keyword
Extends can be understood in two ways:
- Variant 1 (correct):
Code: Select all
Structure Main
var1.i
EndStructure
Structure Sub Extends Main
; Structure Sub extends structure Main
var2.i
EndStructure
Define.Main example
example\var1
- Variant 2 (wrong):
Code: Select all
Structure Main
var1.i
EndStructure
Structure Sub Extends Main
; Structure Sub extends structure Main
var2.i
EndStructure
Define.Main example
example\var1
example\var2
Little John wrote:IsAnExtensionOf
Your keyword is good and reflects the correct function of the keyword
Extends. Shorter would be:
ExtensionOf
Josh wrote:This is complete nonsense, this suggests that 'Structure Sub' is extended by the structure 'Main', which would mean that 'Main' is appended to the end of 'Sub'.
You are right, ExtendWith would be an incorrect keyword.
I sometimes use
Extends in structures, but this time I just thought that this keyword can be understood ambiguously, although the second interpretation makes little sense.
Obviously nobody has problems with it. All is well. But I think it is good to have mentioned it.