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

Doing left-pointing hyper-smartmatch (<<~~<<) with an Array, List or Iterable RHS hangs in Rakudo #3581

Closed
p6rt opened this issue Nov 11, 2014 · 4 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Nov 11, 2014

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

Searchable as RT123178$

@p6rt
Copy link
Author

p6rt commented Nov 11, 2014

From @masak

<alexghacker> any clue why​: « [||] $thing <<<< ( Array, Hash ) »
would hang while « [||] $thing <<
<< ( Positional, Associative ) »
does not?
<alexghacker> It seems to be the Array that's hanging things up, and
I'm thinking that it's because ~~ isn't doing the same thing when I
say​: « [||] $v <<<< ( Array, Hash ) » as it does when I say « $v ~~
Array || $v ~~ Hash »
<FROGGS> m​: say 42 <<
<< Array
<FROGGS> wait for it...
<camelia> rakudo-moar 41fe4f​: OUTPUT«(timeout)»
<FROGGS> where is masak? :o)
<FROGGS> m​: say 42 <<<< Hash
<camelia> rakudo-moar 41fe4f​: OUTPUT«␤»
<FROGGS> m​: say 42 <<
<< List
<camelia> rakudo-moar 41fe4f​: OUTPUT«(timeout)»
<FROGGS> yeah, I thought so
<FROGGS> m​: say 42 <<<< Parcel
<camelia> rakudo-moar 41fe4f​: OUTPUT«False␤»
<alexghacker> m​: say 42 <<
<< Iterable
<camelia> rakudo-moar 41fe4f​: OUTPUT«(timeout)»
<FROGGS> hmmm, that the Hash case does not output anything is also weird
<FROGGS> m​: say 42 <<~~<< Int
<camelia> rakudo-moar 41fe4f​: OUTPUT«True␤»
<FROGGS> if I'd knew a nice short title I'd rakudobug it
* masak comes running, panting
<masak> FROGGS[mobile]​: I'm here, I'm here!
<masak> FROGGS[mobile]​: did you submit those yourself, or should I?
<FROGGS[mobile]> masak​: I did not... I was unable to think of a subject
<masak> oh, that's easy.
* masak submits rakudobug
<FROGGS[mobile]> thank you
<masak> I live to serve.

@p6rt
Copy link
Author

p6rt commented Mar 4, 2015

From @Mouq

Fixed in Rakudo commit​:

commit a99a5729dad9a9f2852716d4916bcedb4cd06927
Author​: Mouq <alexmoquin@​gmail.com>
Date​: Wed Mar 4 01​:32​:28 2015 -0500

  Fix RT #​123178

Tests added in Roast commit​:

commit 3545b6ae6c37d96844274c146a8e53769bdcebec
Author​: Mouq <alexmoquin@​gmail.com>
Date​: Wed Mar 4 01​:46​:28 2015 -0500

  Add test for RT #​123178

Closing as resolved :)

On Tue Nov 11 11​:11​:46 2014, masak wrote​:

<alexghacker> any clue why​: « [||] $thing <<<< ( Array, Hash ) »
would hang while « [||] $thing <<
<< ( Positional, Associative ) »
does not?
<alexghacker> It seems to be the Array that's hanging things up, and
I'm thinking that it's because ~~ isn't doing the same thing when I
say​: « [||] $v <<<< ( Array, Hash ) » as it does when I say « $v ~~
Array || $v ~~ Hash »
<FROGGS> m​: say 42 <<
<< Array
<FROGGS> wait for it...
<camelia> rakudo-moar 41fe4f​: OUTPUT«(timeout)»
<FROGGS> where is masak? :o)
<FROGGS> m​: say 42 <<<< Hash
<camelia> rakudo-moar 41fe4f​: OUTPUT«␤»
<FROGGS> m​: say 42 <<
<< List
<camelia> rakudo-moar 41fe4f​: OUTPUT«(timeout)»
<FROGGS> yeah, I thought so
<FROGGS> m​: say 42 <<<< Parcel
<camelia> rakudo-moar 41fe4f​: OUTPUT«False␤»
<alexghacker> m​: say 42 <<
<< Iterable
<camelia> rakudo-moar 41fe4f​: OUTPUT«(timeout)»
<FROGGS> hmmm, that the Hash case does not output anything is also weird
<FROGGS> m​: say 42 <<~~<< Int
<camelia> rakudo-moar 41fe4f​: OUTPUT«True␤»
<FROGGS> if I'd knew a nice short title I'd rakudobug it
* masak comes running, panting
<masak> FROGGS[mobile]​: I'm here, I'm here!
<masak> FROGGS[mobile]​: did you submit those yourself, or should I?
<FROGGS[mobile]> masak​: I did not... I was unable to think of a subject
<masak> oh, that's easy.
* masak submits rakudobug
<FROGGS[mobile]> thank you
<masak> I live to serve.

@p6rt
Copy link
Author

p6rt commented Mar 4, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Mar 4, 2015

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

@p6rt p6rt closed this as completed Mar 4, 2015
@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