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

Cannot take .values of an uninitialized Any variable #598

Closed
p6rt opened this issue Jan 9, 2009 · 7 comments
Closed

Cannot take .values of an uninitialized Any variable #598

p6rt opened this issue Jan 9, 2009 · 7 comments

Comments

@p6rt
Copy link

p6rt commented Jan 9, 2009

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

Searchable as RT62148$

@p6rt
Copy link
Author

p6rt commented Jan 9, 2009

From @masak

<masak> rakudo​: my Any $x .= new; say $x.values
<p6eval> rakudo 35320​: OUTPUT«Method '!flatten' not found for invocant
of class 'Any' [...]
* masak submits rakudobug

Same goes for Undef, which should arguably also be able to output
.values, I think.

@p6rt
Copy link
Author

p6rt commented Jan 11, 2009

From @pmichaud

On Fri Jan 09 14​:17​:02 2009, masak wrote​:

<masak> rakudo​: my Any $x .= new; say $x.values
<p6eval> rakudo 35320​: OUTPUT«Method '!flatten' not found for invocant
of class 'Any' [...]
* masak submits rakudobug

Now "fixed" in r35392, although I'm not sure what the correct behavior
should be.

  $ ./parrot perl6.pbc
  > my Any $x .= new; say $x.values;
  Any<0x81ecdb8>

Same goes for Undef, which should arguably also be able to output
.values, I think.

Perl 6 doesn't have C<Undef>.

Assigning ticket to moritz++ to make sure we have a test for Any.values.

Thanks,

Pm

@p6rt
Copy link
Author

p6rt commented Jan 11, 2009

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

@p6rt
Copy link
Author

p6rt commented Jan 11, 2009

From @masak

Pm (>), Carl (>>)​:

Same goes for Undef, which should arguably also be able to output
.values, I think.

Perl 6 doesn't have C<Undef>.

What I guess I meant was that the following shouldn't happen either​:

$ perl6 -e 'my $x; say $x.values'
Method '!flatten' not found for invocant of class 'Undef'
[...]

@p6rt
Copy link
Author

p6rt commented Jan 11, 2009

From @masak

Carl (>), Pm (>>), Carl (>>>)​:

Same goes for Undef, which should arguably also be able to output
.values, I think.

Perl 6 doesn't have C<Undef>.

What I guess I meant was that the following shouldn't happen either​:

$ perl6 -e 'my $x; say $x.values'
Method '!flatten' not found for invocant of class 'Undef'
[...]

Oh, and it doesn't anymore as of r35404. :) Nevermind.

@p6rt
Copy link
Author

p6rt commented Jan 11, 2009

From @moritz

On Sat Jan 10 23​:29​:14 2009, pmichaud wrote​:

On Fri Jan 09 14​:17​:02 2009, masak wrote​:

<masak> rakudo​: my Any $x .= new; say $x.values
<p6eval> rakudo 35320​: OUTPUT«Method '!flatten' not found for invocant
of class 'Any' [...]
* masak submits rakudobug

Now "fixed" in r35392, although I'm not sure what the correct behavior
should be.

$ ./parrot perl6.pbc

my Any $x .= new; say $x.values;
Any<0x81ecdb8>

Same goes for Undef, which should arguably also be able to output
.values, I think.

Perl 6 doesn't have C<Undef>.

Assigning ticket to moritz++ to make sure we have a test for Any.values.

Tests are now in t/spec/S29-hash/keys_values.t.

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Jan 11, 2009

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

@p6rt p6rt closed this as completed Jan 11, 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