Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^6: Using Inline::C in a package

by syphilis (Canon)
on Sep 05, 2013 at 13:01 UTC ( #1052561=note: print w/ replies, xml ) Need Help??


in reply to Re^5: Using Inline::C in a package
in thread Using Inline::C in a package

if I did anything to the value in Perl that caused perl to look at it as anything other than an unsigned integer, and by the time that value got back to the C code it could be corrupted

Yes, that would not be nice :-(

aren't unsigned long different sizes on 64-bit *nix and Windows?

I think that's generally (perhaps universally) so. I do know that the long type on my 64-bit Ubuntu box is 64 bits, but 32-bits on 64-bit Windows.
This is not so much of a consideration as regards Windows HANDLEs specifically, but is of relevance in general.

Cheers,
Rob


Comment on Re^6: Using Inline::C in a package
Re^7: Using Inline::C in a package
by BrowserUk (Pope) on Sep 05, 2013 at 13:07 UTC
    This is not so much of a consideration as regards Windows HANDLEs specifically ...

    Of course. Silly me :)


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1052561]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2014-12-28 21:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls