function var_getter

[edit]
static VALUE var_getter(ID id, VALUE *var)