Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: XS Modules: Dependencies

by chromatic (Archbishop)
on Aug 22, 2005 at 17:32 UTC ( [id://485737]=note: print w/replies, xml ) Need Help??


in reply to XS Modules: Dependencies

How does Foo::Bar::Builder and Foo::Bar::Store know, that there is a Foo::Bar or better what Foo::Bar is!

The .pm files that use XSLoader or Dynaloader or whatever you use to load and initialize the shared library of XSUBs can use the other modules.

... how do i call the new function of Foo::Bar (defined in Foo/Bar.xs) inside Foo/Bar/Builder.xs?

Assuming you've already loaded the other shared libraries in your .pm file, they look just like normal Perl subroutines, so call them as normal.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (2)
As of 2024-04-24 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found