handle.free(x)
x
.
x
is cleared. After calling
handle.free
, the function
handle.inuse
will always return
FALSE
.
An "inuse" flag is maintained for each handle. The flag is set when the
handle is created with the
handle
function and cleared with the
handle.free
function.
current.handle <- handle("toyHandle") current.handle # Above command produces this output: Handle 816651124 type = toyHandle : Valid Inuse handle.free(current.handle) current.handle # Above command produces this output: Handle 816651124 type = toyHandle : Valid NotInuse