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

Enums and Whatever stars don't play nice together in Rakudo #781

Closed
p6rt opened this issue Mar 14, 2009 · 5 comments
Closed

Enums and Whatever stars don't play nice together in Rakudo #781

p6rt opened this issue Mar 14, 2009 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Mar 14, 2009

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

Searchable as RT63880$

@p6rt
Copy link
Author

p6rt commented Mar 14, 2009

From @masak

<bacek> masak​: bug-bug! :)
<bacek> rakudo​: say 1 < *
<p6eval> rakudo 5b1ff9​: OUTPUT«Use of uninitialized value␤0␤»
<bacek> rakudo​: enum A <a b>; say a < *
<p6eval> rakudo 5b1ff9​: OUTPUT«too few arguments passed (0) - 1 params
expected [...]
* masak submits

@p6rt
Copy link
Author

p6rt commented May 1, 2009

From @jnthn

On Sat Mar 14 16​:05​:51 2009, masak wrote​:

<bacek> masak​: bug-bug! :)
<bacek> rakudo​: say 1 < *
<p6eval> rakudo 5b1ff9​: OUTPUT«Use of uninitialized value␤0␤»
<bacek> rakudo​: enum A <a b>; say a < *
<p6eval> rakudo 5b1ff9​: OUTPUT«too few arguments passed (0) - 1 params
expected [...]
* masak submits

With latest Rakudo​:

20​:21 <@​jnthn> rakudo​: enum A <a b>; say (a < *).WHAT
20​:21 < p6eval> rakudo f934db​: OUTPUT«Block()␤»
20​:21 <@​jnthn> rakudo​: enum A <a b>; say (a < *).(-1)
20​:22 <@​jnthn> rakudo​: enum A <a b>; say (a < *).(2)
20​:22 < p6eval> rakudo f934db​: OUTPUT«0␤»
20​:22 < p6eval> rakudo f934db​: OUTPUT«1␤»
20​:22 <@​jnthn> rakudo​: 1 < *
20​:22 < p6eval> rakudo f934db​: ( no output )
20​:22 <@​jnthn> rakudo​: enum A <a b>; a < *
20​:23 < p6eval> rakudo f934db​: ( no output )
20​:23 <@​jnthn> OK, I think 63880 is ok

So enums and whatever stars play together OK now (note that this
generates a closure { a < $_ }.

Assigning to moritz++ for tests.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented May 1, 2009

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

@p6rt
Copy link
Author

p6rt commented May 3, 2009

From @moritz

On Fri May 01 11​:33​:38 2009, jnthn@​jnthn.net wrote​:

On Sat Mar 14 16​:05​:51 2009, masak wrote​:

<bacek> masak​: bug-bug! :)
<bacek> rakudo​: say 1 < *
<p6eval> rakudo 5b1ff9​: OUTPUT«Use of uninitialized value␤0␤»
<bacek> rakudo​: enum A <a b>; say a < *
<p6eval> rakudo 5b1ff9​: OUTPUT«too few arguments passed (0) - 1 params
expected [...]
* masak submits

With latest Rakudo​:

20​:21 <@​jnthn> rakudo​: enum A <a b>; say (a < *).WHAT
20​:21 < p6eval> rakudo f934db​: OUTPUT«Block()␤»
20​:21 <@​jnthn> rakudo​: enum A <a b>; say (a < *).(-1)
20​:22 <@​jnthn> rakudo​: enum A <a b>; say (a < *).(2)
20​:22 < p6eval> rakudo f934db​: OUTPUT«0␤»
20​:22 < p6eval> rakudo f934db​: OUTPUT«1␤»
20​:22 <@​jnthn> rakudo​: 1 < *
20​:22 < p6eval> rakudo f934db​: ( no output )
20​:22 <@​jnthn> rakudo​: enum A <a b>; a < *
20​:23 < p6eval> rakudo f934db​: ( no output )
20​:23 <@​jnthn> OK, I think 63880 is ok

So enums and whatever stars play together OK now (note that this
generates a closure { a < $_ }.

Agreed, test added to S02-builtin_data_types/whatever.t.

Chers,
Moritz

Assigning to moritz++ for tests.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented May 3, 2009

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

@p6rt p6rt closed this as completed May 3, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant