fork example is outdated #17

Closed
bbkr opened this Issue Nov 16, 2012 · 0 comments

Projects

None yet

2 participants

@bbkr

Looks like current NativeCall does not support empty variants, like used in fork() example.

<bbkr_> star: use NativeCall; sub fork() returns Int is native() {*}; fork
 <p6eval> star 2012.10: OUTPUT«===SORRY!===␤None of the parametric role variants for 'Native' matched the arguments supplied.␤Cannot call ''; none of these signatures match:␤:(Mu , Routine $r, Str $libname)␤␤at /tmp/S1jr2Ubfmb:1␤»

Without variant at all it works fine (both on OSX and Linux).

bbkr:~ bbkr$ perl6 -e 'use NativeCall; sub fork() returns Int is native {*}; say fork()'
7107
0
@jnthn jnthn closed this in 9ace1ee Nov 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment