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

infix:<:=> binding should bind to a list, not to an item in Rakudo #2102

Closed
p6rt opened this issue Aug 26, 2010 · 6 comments
Closed

infix:<:=> binding should bind to a list, not to an item in Rakudo #2102

p6rt opened this issue Aug 26, 2010 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Aug 26, 2010

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

Searchable as RT77462$

@p6rt
Copy link
Author

p6rt commented Aug 26, 2010

From @masak

<p6eval> rakudo df38ac​: OUTPUT«(1, Any, Any, Any, Any, Any, Any, Any,
Any, Any)␤»
<masak> also, this should work, should it not?
* masak submits rakudobug for the binding thing
<masak> oh! it's because := thinks it binds an item, not a list.
* lue hides
<TimToady> rakudo hasn't caught up with recent spec change on :=
<masak> ...and I don't see a rakudobug for it, so submitting one anyway.

@p6rt
Copy link
Author

p6rt commented Aug 26, 2010

From @masak

Oops. Missed a line at the beginning​:

<masak> rakudo​: my @​pascal := [1], -> @​p { [0, @​p Z+ @​p, 0] } ... *; say @​pascal[^10].perl

On Thu Aug 26 16​:55​:29 2010, masak wrote​:

<p6eval> rakudo df38ac​: OUTPUT«(1, Any, Any, Any, Any, Any, Any, Any,
Any, Any)␤»
<masak> also, this should work, should it not?
* masak submits rakudobug for the binding thing
<masak> oh! it's because := thinks it binds an item, not a list.
* lue hides
<TimToady> rakudo hasn't caught up with recent spec change on :=
<masak> ...and I don't see a rakudobug for it, so submitting one anyway.

@p6rt
Copy link
Author

p6rt commented Aug 26, 2010

@masak - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Sep 14, 2010

From @pmichaud

Now fixed in 51e3ff4; assigning ticket to moritz for spectesting.

Thanks!

Pm

@p6rt p6rt closed this as completed Sep 18, 2010
@p6rt
Copy link
Author

p6rt commented Sep 18, 2010

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

@p6rt
Copy link
Author

p6rt commented Sep 18, 2010

From @kyleha

This is an automatically generated mail to inform you that tests are now available in S03-operators/binding-scalars.t

commit 6a095360415445b153a46db4eb3c892876a0659f
Author​: Moritz Lenz <moritz@​faui2k3.org>
Date​: Sat Sep 18 20​:01​:07 2010 +0200

  test for RT #​77462​: binding should have list assignment precedence

Inline Patch
diff --git a/S03-operators/binding-scalars.t b/S03-operators/binding-scalars.t
index daeca8e..109167e 100644
--- a/S03-operators/binding-scalars.t
+++ b/S03-operators/binding-scalars.t
@@ -10,7 +10,7 @@ These tests are derived from the "Item assignment precedence" section of Synopsi
 
 =end head1 Binding tests
 
-plan 28;
+plan 29;
 
 # Basic scalar binding tests
 {
@@ -132,4 +132,11 @@ plan 28;
   ok($a == 1 && ~@tail eq '2 3', 'bound slurpy');
 }
 
+# RT #77462
+# binding how has the same precedence as list assignment
+{
+    my $x := 1, 2;
+    is $x.join, '12', 'binding has same precdence as list assignment'
+}
+
 # vim: ft=perl6

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant