Skip to content

Instantly share code, notes, and snippets.

@japhb
Created June 12, 2009 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save japhb/128344 to your computer and use it in GitHub Desktop.
Save japhb/128344 to your computer and use it in GitHub Desktop.
Source:
BEGIN { say 'Before "use OpenGL:from<Parrot>;"' }
use OpenGL:from<Parrot>;
BEGIN { say 'After "use OpenGL:from<Parrot>;"' }
say 'Running regular code'
Instrumented result:
Perl6::Compiler.import('Any', ...);
Perl6::Compiler.import('Array', ...);
Perl6::Compiler.import('Bool', ...);
Perl6::Compiler.import('Hash', ...);
Perl6::Compiler.import('IO', ...);
Perl6::Compiler.import('IO::Socket', ...);
Perl6::Compiler.import('IO::Socket::INET', ...);
Perl6::Compiler.import('List', ...);
Perl6::Compiler.import('Match', ...);
Perl6::Compiler.import('Num', ...);
Perl6::Compiler.import('Object', ...);
Perl6::Compiler.import('Pair', ...);
Perl6::Compiler.import('Range', ...);
Perl6::Compiler.import('Temporal', ...);
Perl6::Compiler.import('Whatever', ...);
Before "use OpenGL:from<Parrot>;"
use('OpenGL', :import_to(''), :ver(:from('Parrot'), ), );
After "use OpenGL:from<Parrot>;"
use('OpenGL', :ver(:from('Parrot'), ), );
Running regular code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment