in reply to Re: Operator overloading with returning lists?
in thread Operator overloading with returning lists?

I don't think that will work if the caller expects just one return value.
  • Comment on Re^2: Operator overloading with returning lists?

Replies are listed 'Best First'.
Re^3: Operator overloading with returning lists?
by diotalevi (Canon) on Dec 09, 2008 at 05:00 UTC

    I'm just saying it's theoretically possible to violate your caller this way even if it wasn't expecting it.

    ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊

      The problem is that if your XS pushes multiple things on the stack, and the caller expects just one, the caller will pop up just one thing of the stack, leaving the rest there.