I'm not convinced checking whether you are in an eval block or not is the best way to solve your problem. Normally you throw an exception when the library code does not know the best way to continue ("Abort, Retry, Ignore?" ... "Dump Object"? :). If you are certain you always want an object dump when you hit an exceptional condition, why not just code it that way inside your object?
As for determining whether you are in an eval, see Determining depth of eval nesting.
In reply to Re: Run in eval and out of eval
by eyepopslikeamosquito
in thread Run in eval and out of eval
by wrc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |