in reply to eval-ling code in another process
The only thing that can be passed from the child to the parent is its exit code and streams of bytes in file handles (usually pipes attached to the child's STDOUT and STDERR). Specifically, the OS knows nothing of exceptions.
If you wish to recreate in the parent an object that existed in the child, you'll need to develop a protocol to transmit the necessary information to do so, and both your child and parent will need to adhere to that protocol.
|
|---|