Created
June 12, 2009 00:28
-
-
Save japhb/128344 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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