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

Undeparsable subs

Thread Next
From:
Father Chrysostomos
Date:
June 26, 2011 18:36
Subject:
Undeparsable subs
Message ID:
298DFEEE-2DD6-4A74-96A8-17AE44F62B56@cpan.org
Is there any way to mark a ‘Perl’ sub as undeparsable, such that B::Deparse will treat it as an XSUB?

I put ‘Perl’ in quotes, because I am referring to a sub with an op tree that is not derived from Perl code, and which will confuse B::Deparse.

This doesn’t have to be an API, as it’s for the core. (This is one possible approach to \&CORE::keyword that I’m thinking about.)

Could we add a flag for that, or is there already a way to do it that I missed?


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