Skip to content

$obj.*@candidates gives less-than-awesome error message #1133

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

Closed
p6rt opened this issue Jul 12, 2009 · 4 comments
Closed

$obj.*@candidates gives less-than-awesome error message #1133

p6rt opened this issue Jul 12, 2009 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Jul 12, 2009

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

Searchable as RT67480$

@p6rt
Copy link
Author

p6rt commented Jul 12, 2009

From @moritz

Rakudo​: 08928df70e4af4013eb0bfde02256262728ecf6e

$ perl6 -e 'my @​a = <elems join>; say @​a.*@​a()'
Cannot use .* when method is a code ref at line 1, near ""
in Main (src/gen_setting.pm​:1334)

This is rather unhelpful to me since I see no code refs anywhere.
Tests (for the real thing) are in tspec/S12-methods/indirect_notation.t.

Cheers,
Moritz

@p6rt
Copy link
Author

p6rt commented Aug 19, 2009

From @jnthn

On Sun Jul 12 10​:56​:35 2009, moritz wrote​:

Rakudo​: 08928df70e4af4013eb0bfde02256262728ecf6e

$ perl6 -e 'my @​a = <elems join>; say @​a.*@​a()'
Cannot use .* when method is a code ref at line 1, near ""
in Main (src/gen_setting.pm​:1334)

This is rather unhelpful to me since I see no code refs anywhere.
Tests (for the real thing) are in tspec/S12-methods/indirect_notation.t.

Note that here, @​a is meant to be a list of invokables rather than a
list of method names. I implemented support for this a couple of days
ago, and corrected the wrong tests in indirect_notation.t. You now get
the more standard "can't invoke a Perl6Str" style error, which is more
accurate than what was there before.

Thanks,

Jonathan

@p6rt
Copy link
Author

p6rt commented Aug 19, 2009

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

@p6rt
Copy link
Author

p6rt commented Aug 19, 2009

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

@p6rt p6rt closed this as completed Aug 19, 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