develooper Front page | perl.perl5.porters | Postings from October 2014

[perl #123009] expose functions for creating blocks and local variables

Thread Previous
From:
l.mai@web.de via RT
Date:
October 24, 2014 23:32
Subject:
[perl #123009] expose functions for creating blocks and local variables
Message ID:
rt-4.0.18-4514-1414193571-1969.123009-15-0@perl.org
On Sun Oct 19 07:04:15 2014, sprout wrote:
> On Sun Oct 19 01:46:40 2014, mauke- wrote:
> >
> > What's missing:
> > - newDEFSVOP (for generating the $_ in 'do_stuff_with($_) for
> > @values')
> > - intro_my (for declaring lexical variables)
> > - block_start (for opening a block)
> > - block_end (for closing a block)
> >
> > It would be nice if those functions (or an equivalent API) could be
> > made public.
> 
> Add convert to the list (though it should be renamed op_convert).
> Then you can remove the lastsib manipulation.  That’s the missing part
> of the API I alluded to in CPAN ticket #99100.
> 
> We usually don’t apify these without tests.  Would you be willing to
> provide tests (using XS::APItest)?

I've attached a patch to make newDEFSVOP public. Does this look correct and complete?

If so, I'll have a go at the other functions.

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=123009

Thread Previous


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