develooper Front page | perl.perl5.porters | Postings from June 2021

Re: parse_block() and unbalanced scope stack

Thread Previous | Thread Next
From:
Paul "LeoNerd" Evans
Date:
June 21, 2021 19:57
Subject:
Re: parse_block() and unbalanced scope stack
Message ID:
20210621205633.7e9272cd@shy.leonerd.org.uk
On Mon, 21 Jun 2021 17:07:46 +0100
"Paul \"LeoNerd\" Evans" <leonerd@leonerd.org.uk> wrote:

> It turns out I can fix this by the horrible hack of:
> 
>     /* REALLY??! Do I really have to do this?? */
>     while(PL_scopestack_ix > was_scopestack_ix)
>       LEAVE;
> 
> But (as the comment says) - really, am I supposed to be doing this? It
> feels like parse_block() is being rude in not doing that for me.

The source code, for reference:
https://metacpan.org/release/PEVANS/XS-Parse-Sublike-0.12/source/lib/XS/Parse/Sublike.xs#L219-224

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About