in reply to The costs of packages


What I am trying to do is encapsulate several hundred datatypes (think C-style structs and unions)

This is secondary to your main question but the Convert::Binary::C module is very useful for manipulating structs, unions, enums and typedefs in C source and headers files.

--
John.

Replies are listed 'Best First'.
Re: Re: The costs of packages
by BrowserUk (Patriarch) on Sep 17, 2003 at 17:57 UTC

    Thanks for the pointer:) I hadn't encountered that module in my peruse of CPAN.

    For various reasons, the header files I am using are actually assembler header files (.inc) rather than C header files which kyboshes it somewhat. Also, from my quick look at the module, it would require the header files to be available on the target system (which could be a legal problem unless they got them from a C compiler distribution ) and (I think) it would export everything in the header rather than just those things used, which doesn't suit my purpose.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
    If I understand your problem, I can solve it! Of course, the same can be said for you.