A Type in a Type

Blitz3D Forums/Blitz3D Programming/A Type in a Type

@somethingfunky ... I use this type of thing all the time so I've no idea what your on about! A better example is using a Vector type ...

Type Vector
field x#,y#,z#
end type

type Ship
field Velocity.vector
field Acceleration.vector
end type

type Otherthing
field Position.vector
end type

This is far more elegant than storing x,y,z as a field in each type which uses coords.

Stevie