NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Steal their brand (Score:2)
Because ctypes has such a good reputation, I'd hijack their brand as much as possible.
So, distribution name "ctypes".
Main namespace, "CDLL".
So in python...
cdll.LoadLibrary('libc.so.6'); ...becomes something like this in Perl...
CDLL->load_library('libc.so.6');
Reply to This
Re: (Score:1)
Also, in the effort of articulating why I was never keen on the Python API, it's just 'clicked' with me. Thanks for that
I take it you can't just simply ask for 'libc' on *nix 'cause you might have several libc.so.x lying around.
Why is that? Could there be a way to mitigate for it? I do like the ol' automatic accessor style:
cdll->libc->function('arg').If that wasn't available cross platform I wouldn't even bother making it an optional syntax for Windows.