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
| use v6; | |
| use NativeCall; | |
| # I like Git's distinction between "porcelain" and "plumbing" | |
| my module POSIXPlumbing { | |
| } | |
| class X::POSIX { | |
| submethod BUILD() { | |
| # XXX initialize from errno/strerror | |
| } | |
| } | |
| module POSIX { | |
| our sub getuid() returns Int is native is export(:ALL) { ... } | |
| # XXX generate subs by name | |
| } | |
| our sub EXPORT(|) { | |
| # XXX do exporting | |
| } |
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
| use v6; | |
| use lib 'lib'; | |
| use POSIX <getuid>; | |
| say getuid(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment