take this example:
TTest2 doesn't have a constructor and the test Field is made automatically due to the New TTest statement. Is it preffered that I would make a New() method and in that method put test = New TTest instead? Seems a bit long winded if not needed or is it better for code clarity etc? opinions ...
Type Ttest
Field a = 10
End Type
Type Ttest2
Field test:Ttest = New TTest
End Type
t: Ttest2 = New Ttest2
Print t.test.a
Field a = 10
End Type
Type Ttest2
Field test:Ttest = New TTest
End Type
t: Ttest2 = New Ttest2
Print t.test.a
TTest2 doesn't have a constructor and the test Field is made automatically due to the New TTest statement. Is it preffered that I would make a New() method and in that method put test = New TTest instead? Seems a bit long winded if not needed or is it better for code clarity etc? opinions ...