Skip to content

Instantly share code, notes, and snippets.

@arnsholt
Created April 2, 2013 20:08
Show Gist options
  • Select an option

  • Save arnsholt/5295730 to your computer and use it in GitHub Desktop.

Select an option

Save arnsholt/5295730 to your computer and use it in GitHub Desktop.
use lib '.';
use t::CompileTestLib;
use NativeCall;
compile_test_lib('08-callbacks');
sub TakeACallback(&cb()) is native('./08-callbacks') { * }
sub simple_callback() {
say 'simple callback';
}
TakeACallback(&simple_callback);
pir::sweep__vi(1);
# vim:ft=perl6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment