David Megginson
>
> Norman Vine writes:
> 
>  > > but what worries me is how to translate a chunk of binary data
>  > > into perl variables ... probably easy once you know the tricks.
>  > 
>  > http://www.swig.org
> 
> Last time I looked at swig, it was for creating bindings for native
> libraries from include files.

Not really sure what you mean by that David but SWIG is designed
to extend scripting languages with application specific knowledge
It is true that it gleens this knowledge from your header files but
then so does 'C' so this is not revolutionary

> 
> Try
> 
>   perldoc -f pack
>   perldoc -f unpack
> 
> Perl has excellent support for this kind of thing, once you get your
> head around it.

Yup so do most other scripting lanuages for example the 'struct'
module in Python however I mentioned SWIG because it is so
*easy* to use and results in a module that is not language specific
and usually runs faster too  :-)

Norman

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to