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
&& or defined and && bug #313
Comments
From @ilyabelikinHi, my $k = 'bar'; Ilya |
From @bacekHello. This is parsing bug. "say defined $a and defined %b{$a}" parsed as "(say defined $a) and -- |
The RT System itself - Status changed from 'new' to 'open' |
From @masakIlya (>):
No, this is intended. "and" has very loose precedence, even looser (say defined $k) and defined %s{$k}; ...which would output 1 but return 0. To learn more about operator precedence, see <http://perlcabal.org/syn/S03.html#Operator_precedence> Also check out the excellent "perldoc perlop" for Perl 5 for more <http://perldoc.perl.org/perlop.html> // Carl |
From @ilyabelikinHi, 2008/9/14 via RT Ilya Belikin <perl6-bugs-followup@perl.org>:
|
From @bacekIlya Belikin wrote:
I replyed in ticket, but it doesn't hit mailinglist. This is bug in -- |
From @pmichaudOn Sun, Sep 14, 2008 at 09:13:33PM +1000, Vasily Chekalkin wrote:
As Carl correctly noted, Rakudo has the parsing for infix:<and> correct -- The intended version is likely: say defined $k && defined %s{$k}; However, as of r31017 Rakudo did not have 'defined' as a named say( defined( $k && defined( %s{$k} ) ) ); which is also not what is wanted. In r31116 I've changed 'defined' $ cat x We probably need to test that 'defined' is a named unary in t/spec. Closing ticket, thanks. Pm |
@pmichaud - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#58830 (status was 'resolved')
Searchable as RT58830$
The text was updated successfully, but these errors were encountered: