Skip to content
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

Context error in B::Deparse (was Re: Conditional puzzle) #396

Closed
p5pRT opened this issue Aug 18, 1999 · 4 comments
Closed

Context error in B::Deparse (was Re: Conditional puzzle) #396

p5pRT opened this issue Aug 18, 1999 · 4 comments

Comments

@p5pRT
Copy link
Collaborator

@p5pRT p5pRT commented Aug 18, 1999

Migrated from rt.perl.org#1231 (status was 'resolved')

Searchable as RT1231$

@p5pRT
Copy link
Collaborator Author

@p5pRT p5pRT commented Aug 18, 1999

From mjtg@cus.cam.ac.uk

Well, your example suggests it's a bit rocky ...

[10​:20] ettsn% cat try
#! /usr/bin/perl -w

use strict;

my $x = @​ARGV or shift if @​ARGV;
my $y = "foo" or shift if @​ARGV;
[10​:20] ettsn% perl -MO=Deparse,-p try
Found = in conditional, should be == at try line 6.
try syntax OK
[snip warnings]
(@​ARGV and ((my($x) = @​ARGV) || shift(@​ARGV)));
(@​ARGV and ((my($y) = 'foo') || shift(@​ARGV)));

Hmmm... converting a scalar assignment to a list assignment?

And it gets this wrong in the same way​:

  $a = 2; $b = $a**2 x 4;

Cc'd to perlbug. (Failure occurs on both 5.005_03 and 5.005_60.)

Mike Guy

@p5pRT
Copy link
Collaborator Author

@p5pRT p5pRT commented Oct 29, 2001

From [Unknown Contact. See original ticket]

Well, your example suggests it's a bit rocky ...

[10​:20] ettsn% cat try
#! /usr/bin/perl -w

use strict;

my $x = @​ARGV or shift if @​ARGV;
my $y = "foo" or shift if @​ARGV;
[10​:20] ettsn% perl -MO=Deparse,-p try
Found = in conditional, should be == at try line 6.
try syntax OK
[snip warnings]
(@​ARGV and ((my($x) = @​ARGV) || shift(@​ARGV)));
(@​ARGV and ((my($y) = 'foo') || shift(@​ARGV)));

Hmmm... converting a scalar assignment to a list assignment?

And it gets this wrong in the same way​:

  $a = 2; $b = $a**2 x 4;

Cc'd to perlbug. (Failure occurs on both 5.005_03 and 5.005_60.)

Mike Guy

@p5pRT
Copy link
Collaborator Author

@p5pRT p5pRT commented Oct 29, 2001

From @schwern

--

Michael G. Schwern <schwern@​pobox.com> http​://www.pobox.com/~schwern/
Perl6 Quality Assurance <perl-qa@​perl.org> Kwalitee Is Job One
Stupid am I? Stupid like a fox!

@p5pRT
Copy link
Collaborator Author

@p5pRT p5pRT commented Aug 7, 2002

@gbarr - Status changed from 'open' to 'resolved'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.