[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: FW: Final year project

From: Greg Stein <gstein_at_lyra.org>
Date: 2002-10-23 03:24:36 CEST

On Tue, Oct 22, 2002 at 10:10:31PM +0200, Arild Fines wrote:
> news wrote:
> > Hi.
> > Cool idea. I had the same but not the time to implement it :-(
> > I have studied the .NET framework a little bit.
> > My first idea was to go completely C# by using PInvoke to access the
> > SVN API.
>
> P/Invoke only works on dynamic libraries, while the SVN API on Win32
> is still just a set of static libraries. I don't know what the
> timeframe for changing it to DLL's are(anyone?), but I still think I
> would prefer to use MC++ for the low level interface to SVN. P/Invoke
> isn't all that elegant.

Actually, my favorite blue sky is to write a SWIG "language" that can
generate COM bindings for an API. Each time our API changes, then you can
just re-run SWIG and pick up the changes. Boy, that would rock...

Your typemaps would just deal with marshalling the types to/from the
standard automation types. The "language" would deal with constructing the
class files and the IDL files.

Conceptually, I believe the idea should work, and there are plenty of SWIG
languages to look at to figure out how to write a new language. It is just
one of those "wow, if I only had the time" projects... :-)

Cheers,
-g

-- 
Greg Stein, http://www.lyra.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Oct 23 03:24:59 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.