-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@DB::args inconsistently reflects changes to @_ #13517
Comments
From @jimavThis is a bug report for perl from james_avera@yahoo.com, When caller() is called from package DB, it sets @DB::args However this is not always the case. If the calling sub (not in package DB) modifies @_ before calling into Is this a bug, a side-effect of the optimizer, or intentional behavior? On the surface, it seems like @DB::args should either always get [This matters to me because @_ isn't displayed reliably in a #!/usr/bin/perl package DB; Flags: Site configuration information for perl 5.14.2: Configured by Debian Project at Thu Jul 18 22:04:35 UTC 2013. Summary of my perl5 (revision 5 version 14 subversion 2) configuration: Platform: Locally applied patches: @INC for perl 5.14.2: Environment for perl 5.14.2: PATH=/home/jima/perl5/bin:/home/jima/bin:/home/jima/local/bin:/home/jima/jima_tools/x86_64/bin:/home/jima/jima_tools/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/bin/X11:/usr/local/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/games:/usr/local/games:/usr/lib/jvm/java-7-oracle/bin:/usr/lib/jvm/java-7-oracle/db/bin:/usr/lib/jvm/java-7-oracle/jre/bin:. PERL5LIB=/home/jima/lib/perl:/home/jima/perl5/lib/perl5/x86_64-linux-gnu-thread-multi:/home/jima/perl5/lib/perl5 |
From @iabynOn Thu, Jan 09, 2014 at 03:35:24PM -0800, Jim Avera wrote:
I think it's intentional behaviour. The code in caller() specifically I think its designed around the common idiom of sub foo { which allows debuggers etc to see the args that that foo() was called In particular, arrays that are shifted retain their earlier elements; its But yes, its a bit messy and inconsistent (but no more inconsistent than -- |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#120959 (status was 'open')
Searchable as RT120959$
The text was updated successfully, but these errors were encountered: