develooper Front page | perl.perl5.porters | Postings from July 2012

[perl #113930] Breaking the API for newMYSUB ([perl #11930] Lexical subs)

Thread Next
Father Chrysostomos via RT
July 5, 2012 14:46
[perl #113930] Breaking the API for newMYSUB ([perl #11930] Lexical subs)
Message ID:
newMYSUB is listed in the API.  (It has an A in embed.fnc and shows up
in the undocumented list in perlapi.pod.)

This is its signature:

#ifdef PERL_MAD
OP *
Perl_newMYSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block)

Implementing lexical subs within the constrains of the current
parameters and return value is not impossible, but hardly sane.  It
would be easier to make newMYSUB a stub that dies, and create a
completely new function.

Instead, can I just change this?  Nothing uses it.  All it does
currently is die anyway.


Father Chrysostomos

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About