Thank you Vadim, your explanation makes a lot of sense!
On Tue, Jan 19, 2021 at 5:23 PM Vadim Belman wrote:
> Hello,
>
> By "never returns" it's not meant that nextsame redispatches to the next
> sub and skips the current stack frame. It only means that no statements
> following nextsame will
Hello,
By "never returns" it's not meant that nextsame redispatches to the next sub
and skips the current stack frame. It only means that no statements following
nextsame will be executed. It's the same semantics as with return. So, the best
way to consider nextsame would be to think of it as
Hello,
I'm trying to understand how nextsame works.
Apparently I started from the wrong assumptions: I thought that once the
first matched sub in the chain called nextsame, the arguments were matched
against the following subs regardless of the return value.
It seems that while the return value