in reply to P5NCI + void load_function-signature

my $test = $lib->install_function( 'do_nothing', 'vi' );

Shouldn't that signature be 'iv'?

-sam

  • Comment on Re: P5NCI + void load_function-signature

Replies are listed 'Best First'.
Re^2: P5NCI + void load_function-signature
by nostromo (Sexton) on Jun 22, 2006 at 15:45 UTC
    yes, sam, you are right. i tried both, and seems i forgot to paste the latest version of my test-script.
    nonetheless, it still does not work :(
    Don't understand NCI signature 'iv' at /usr/share/perl5/P5NCI/Library.pm line 40
      The docs for P5NCI::Library say:

      This function itself will throw an exception if you fail to provide both a function name and its signature. It will also throw an exception if it does not understand the signature. That might not be an error -- it doesn't understand a lot of valid signatures yet.

      Looks like you found one it doesn't "understand."

      -sam

        hm.... :(

        in the tests-directory there is a test that does test for 'vpi', so a pointer+integer, with return-value of void.
        maybe chromatic can give a little more insight...

        thx for your contributions, sam!