On Wed, 1 Oct 2003 12:47:30 +1000 (EST) Mark Livingstone <[EMAIL PROTECTED]> wrote:

ML> Now it should be said that my understanding of SWIG doesn't go much beyond the
ML> fact that it is a system for interfacing two languages - in our case presumeably
ML> C++ and Python. I've downloaded a tarball and am currently reading the doc's.

 Bascially, SWIG parses special .i files containing something looking like
C++ declarations and generates the glue necessary to call use the C++
classes/functions from Python (and/or other languages, there is really no
particular reason to limit ourselves to Python if we use SWIG, supporting
Perl, TCL or Ruby is not more difficult than supporting any one of them).

 The idea I had (point (2) below) is that we could try to use our .h files
directly instead of maintaining .i files in parallel as new SWIG (the
official one, nothing to do with Robin's changes) is supposed to be able to
parse real C++ just as well. This would be ideal as the burden of
maintenance would be almost inexistent then. It wouldn't work without some
effort, however...

ML> VZ>  Yes. Fixing Python is easy but not trivial. There are 2 posssibilities:
ML> VZ> 
ML> VZ> 1. simple but not very interesting: update .i files manually, i.e. simply
ML> VZ>    integrate the changes from .h files into them
ML> 
ML> Is this hard to do? I have not looked at it at all yet.

 No, it shouldn't be.

ML> VZ> 2. try new SWIG (1.3.19?) which is supposed to be able to directly parse .h
ML> VZ>    files and get rid of .i completely or, maybe, keep them but just for
ML> VZ>    SWIG directives (i.e. we could tell it to ignore some methods or rename
ML> VZ>    some others)
ML> 
ML> Would we be better off first trying to use the SWIG that is used in wxPython as
ML> I understand Robin has specially modified it to be used with wxWindows? It also
ML> at least comes in the wxWindows CVS tree.

 No, we don't need Robin's changes and we don't expose wxWindows in our .i
files, just functionality specific to Mahogany.

 Regards,
VZ



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Mahogany-Developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-developers

Reply via email to