Skip Menu |
Report information
Id: 130413
Status: new
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: cpan [at] zoffix.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: is export() on one multi candidate exports all candidates
Download (untitled) / with headers
text/plain 891b
$ cat Foo.pm6 multi foo ($ ) is export { say "here" } multi foo ($, $) { say "there" } $ perl6 -I. -MFoo -e '.say for &foo.candidates' sub foo ($) { #`(Sub|64572824) ... } sub foo ($, $) { #`(Sub|64572976) ... } My expectation is that only the candidate I marked for export would be exported. Especially since I know it's possible to have different candidates visible in different scopes: $ cat Foo.pm6 multi foo ($ ) is export { say "here" } multi foo ($, $) { say "there" } .say for &foo.candidates $ perl6 -I. -MFoo -e 'multi foo ($, $, $) {}; say "----"; .say for &foo.candidates' sub foo ($) { #`(Sub|77538744) ... } sub foo ($, $) { #`(Sub|80610240) ... } ---- sub foo ($) { #`(Sub|77538744) ... } sub foo ($, $) { #`(Sub|80610240) ... } sub foo ($, $, $) { #`(Sub|80617992) ... }


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org