Here is an arbitary example
When run it prints the value of Mine:Tbase.Fone
then it casts TBASE to TExtend. BUT it dosent even do a field copy?
Because when I then ask for FOne, its a different number
Type TBase Field FOne:Int '--------------------------------------------- Function Create:TBase () Local Temp:TBase = New TBase Temp.FOne = 1 Return Temp End Function EndType '---------------------------------------------- Type TExtend Extends TBase Field FTwo:Int '--------------------------------------------- Function Create:TExtend () Local Temp:TExtend = New TExtend Temp.FTwo = 2 Return Temp End Function End Type Global mine:TBase = TBase.Create() Print mine.FOne Print TExtend(mine:TBase).FOne
When run it prints the value of Mine:Tbase.Fone
then it casts TBASE to TExtend. BUT it dosent even do a field copy?
Because when I then ask for FOne, its a different number