Guest User

perl6 native calls

a guest
Aug 2nd, 2013
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. slava@dogbert:~/.perl6/2013.05/lib$ perl6
  2. > use NativeCall;
  3. Nil
  4. > sub simple() returns Int is native('libsimple') { * }
  5. sub+{native} simple() { ... }
  6. > say simple();
  7. 5
  8. >
Advertisement
Add Comment
Please, Sign In to add comment