InterviewSolution
| 1. |
How Do I Stringify An Object Reference? |
|
Answer» Use object_to_string(), and REVERSE the PROCESS using string_to_object(). There is some magic in string_ to_ object(); it not only does the necessary string-to-pointer conversion, it ensures that you get a currently VALID object reference that is equivalent to the original reference that was stringified (i.e., both REFER to the same object instance). Use object_to_string(), and reverse the process using string_to_object(). There is some magic in string_ to_ object(); it not only does the necessary string-to-pointer conversion, it ensures that you get a currently valid object reference that is equivalent to the original reference that was stringified (i.e., both refer to the same object instance). |
|