Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: XS Modules: Dependencies

by diotalevi (Canon)
on Aug 23, 2005 at 13:32 UTC ( [id://485900]=note: print w/replies, xml ) Need Help??


in reply to Re^2: XS Modules: Dependencies
in thread XS Modules: Dependencies

It looks like you're doing too much in XS and not enough in perl. Why can't you have your C-allocating routines just return a numified pointer and let perl do all of its own OO stuff? I also feel like I'm getting lost somewhere in your confused code. I'd really like to point you at Simon Cozen's Embedding and Extending Perl book. Or Damian Conway's Object Oriented Perl.

sub new { my ( $class ) = @_; my $c_ptr = Foo::Bar::_new_or_whatever(); return bless \ $c_ptr, $class; }

Replies are listed 'Best First'.
Re^4: XS Modules: Dependencies
by esskar (Deacon) on Aug 23, 2005 at 18:08 UTC
    just do it. i have both in my book shelf. :)
    and thanks, i will give it a try

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-20 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found