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

Error using .classify with Junction - ERR: P6opaque: no such attribute '$!reified' #5205

Closed
p6rt opened this issue Mar 30, 2016 · 6 comments
Closed

Comments

@p6rt
Copy link

p6rt commented Mar 30, 2016

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

Searchable as RT127803$

@p6rt
Copy link
Author

p6rt commented Mar 30, 2016

From joshuamy@gmail.com

It's works fine if you explicitly Boolify the expression. It shouldn't need strict Boolification, it works fine with grep.

<one two three four five>.classify( *.contains​: any('a'..'f') );
P6opaque​: no such attribute '$!reified'

<one two three four five>.classify( ?*.contains​: any('a'..'f') );
False => [two], True => [one three four five]

<one two three four five>.grep( *.contains​: any('a'..'f') );
(one three four five)

@p6rt
Copy link
Author

p6rt commented Jul 10, 2016

From @zoffixznet

Still present in rakudo 405519​:

<Zoffix> m​: say <one two three four five>.classify( *.contains​: any('a'..'f') );
<camelia> rakudo-moar 405519​: OUTPUT«P6opaque​: no such attribute '$!reified' in type List when trying to get a value␤ in block <unit> at <tmp> line 1␤␤»

@p6rt
Copy link
Author

p6rt commented Aug 23, 2016

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

@p6rt
Copy link
Author

p6rt commented Aug 25, 2016

From @lizmat

Fixed with 7fa2ba77d438a7169f6b1e1 , tests needed

On 30 Mar 2016, at 14​:06, Joshua (via RT) <perl6-bugs-followup@​perl.org> wrote​:

# New Ticket Created by Joshua
# Please include the string​: [perl #​127803]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=127803 >

It's works fine if you explicitly Boolify the expression. It shouldn't need strict Boolification, it works fine with grep.

<one two three four five>.classify( *.contains​: any('a'..'f') );
P6opaque​: no such attribute '$!reified'

<one two three four five>.classify( ?*.contains​: any('a'..'f') );
False => [two], True => [one three four five]

<one two three four five>.grep( *.contains​: any('a'..'f') );
(one three four five)

@p6rt
Copy link
Author

p6rt commented Sep 2, 2016

From @zoffixznet

Tests added in Raku/roast@15eced771c

@p6rt
Copy link
Author

p6rt commented Sep 2, 2016

@zoffixznet - 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
Development

No branches or pull requests

1 participant