Would this work...
or would I get problems because I use parameters with the same name as the fields in the type?
Type Vec3 Field x:float,y:float,z:float Method Set(x:float,y:float,z:float) self.x=x self.y=y self.z=z End Method Function Create:Vec3(x:float,y:float,z:float) v:Vec3 = New Vec3 v.x=x v.y=y v.z=z Return v End Function End Type 'One way local Pos:Vec3 = New Vec3 Pos.x=10.0 Pos.y=20.0 Pos.z=30.0 'another way local Pos:Vec3 = New Vec3 Pos.Set(10.0,20.0,30.0) ' yet another way... local Pos:Vec3 = Vec3.Create(10.0,20.0,30.0)
or would I get problems because I use parameters with the same name as the fields in the type?