C callbacks returning a value

N

Nigel

I have a callback routine written in C which returns an int. In all
of the examples of how to write callback rountines in the perlcall
perldoc (http://perldoc.perl.org/perlcall.html), none of the examples
returns a value. All the callbacks have been defined as 'void'.

Does this mean that it's not possible to return a value from a C
callback called from Perl? If so, how can it be done and will the
perlcall document be updated. If not, is this a feature that will be
added in 5.14?

-Nigel
 
S

smallpond

I have a callback routine written in C which returns an int.  In all
of the examples of how to write callback rountines in the perlcall
perldoc (http://perldoc.perl.org/perlcall.html), none of the examples
returns a value.  All the callbacks have been defined as 'void'.

Does this mean that it's not possible to return a value from a C
callback called from Perl?  If so, how can it be done and will the
perlcall document be updated.  If not, is this a feature that will be
added in 5.14?

perlxs describes calling C from Perl.
http://perldoc.perl.org/perlxs.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top