Skip to content
This repository

fork example is outdated #17

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

2 participants

Pawel Pabian Jonathan Worthington
Pawel Pabian

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
Jonathan Worthington jnthn closed this in 9ace1ee November 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.