in reply to Force caller to return - reflection

The answer is no. Even throwing an exception from argok() can be easily defeated: the called subroutine has first dibs on catching exceptions.

But since you are in control of argok(), can't you just collect the information you want in argok()?

  • Comment on Re: Force caller to return - reflection

Replies are listed 'Best First'.
Re^2: Force caller to return - reflection
by Improv (Pilgrim) on Jan 20, 2009 at 14:12 UTC
    The information is collected in argok(). The information collected there should be returned to the caller of the method/subroutine that uses Argpass, not the user of those methods/subroutines. I would also prefer not to muddy the user code with conditional returns, and ideally to avoid using exceptions. I'm not completely surprised that this isn't possible though.