Copy given object to the heap, if it is from the stack. This function is intended to be called directly from application code. Note that only a shallow-copy is performed! For example, a pair object would be copied to the heap but its car
and cdr
objects would not.
- Parameters
-
data | Thread data object for the caller. |
obj | Object to copy. |