fork example is outdated #17

bbkr opened this Issue Nov 16, 2012 · 0 comments


None yet

2 participants


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()'
@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