in reply to Re: Unlimited chaining (is there a way to detect this?)
in thread Unlimited chaining (is there a way to detect this?)

hmmm... I didn't get how will want('OBJECT') will help since bar() only returns an object...
  • Comment on Re^2: Unlimited chaining (is there a way to detect this?)

Replies are listed 'Best First'.
Re^3: Unlimited chaining (is there a way to detect this?)
by ysth (Canon) on Jan 06, 2008 at 22:43 UTC
    By "Is it possible to detect it?" I was assuming you meant detect when the return from the current method will be the object of a method call. That's what want('OBJECT') does. From your other replies, it seems what you are looking for is somehow to detect when a method is called on its previous return "too many" times. I'm not sure what the problem calling code would look like, though.