types and functions

Blitz3D Forums/Blitz3D Beginners Area/types and functions

is there any way to pass any object\variable to a function ?
eg.

;-define type---------------

type car
field accelerate_timer
field decelerate_timer
end type

global blue.car = new car

;-main-program--------------

set_timer(blue\accelerate_timer)
set_timer(blue\decelerate_timer)
end

;-function------------------

function set_timer (object\variable)
object\variable = milliecs()
end function

;---------------------------