Hi,
I discovered over the weekend that the New method is not overridden and will run for each ancestor. I think it would be great if this was mentioned somewhere in the "User Defined Types" section of the language reference.
For Example:
outputs
x Parent
x Parent
y Child
Override Parent
Override Child
I discovered over the weekend that the New method is not overridden and will run for each ancestor. I think it would be great if this was mentioned somewhere in the "User Defined Types" section of the language reference.
For Example:
Strict Type tOne Field x:String = "x" Method New () Self.x = "x Parent" End Method Method Override() Self.x = "Override Parent" End Method End Type Type tTwo Extends tOne Field y:String = "y" Method New () Self.y = "y Child" End Method Method Override() Self.x = "Override Child" End Method End Type Global one:tOne = New tOne Global two:tTwo = New tTwo Print one.x Print two.x Print two.y one.override two.override Print one.x Print two.x
outputs
x Parent
x Parent
y Child
Override Parent
Override Child