Skip to content

Commit

Permalink
Oops, we want the default exports available as well
Browse files Browse the repository at this point in the history
- so not only slice through EXPORT::COLUMNS, but also EXPORT::DEFAULT
  • Loading branch information
lizmat committed Nov 4, 2017
1 parent fea5612 commit 360eb22
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Telemetry.pm6
Expand Up @@ -849,7 +849,10 @@ sub T () is export { Telemetry.new }
# Provide limited export capability --------------------------------------------

sub EXPORT(*@args) {
(EXPORT::COLUMNS::{ @args.map: "&" ~ * }:p).Map
(
|(EXPORT::COLUMNS::{ @args.map: '&' ~ * }:p),
|(EXPORT::DEFAULT::{ @args.map: '&' ~ * }:p),
).Map
}

# Make sure we tell the world if we're implicitely told to do so ---------------
Expand Down

0 comments on commit 360eb22

Please sign in to comment.