Re: Announcing: D support in SWIG

2011-02-02 Thread David Nadlinger
On 2/2/11 2:02 PM, Trass3r wrote: Does SWIG also support turning all those crappy C++ Get*/Set* methods you can find in almost every OOP-based project into proper D properties (incl. removing Get/Set and turning the next letter lowercase)? There is regex-based rename support in SWIG, so this

Re: Announcing: D support in SWIG

2011-02-02 Thread Trass3r
Does SWIG also support turning all those crappy C++ Get*/Set* methods you can find in almost every OOP-based project into proper D properties (incl. removing Get/Set and turning the next letter lowercase)?

Re: Announcing: D support in SWIG

2011-01-19 Thread Jordi
On 01/19/2011 07:16 PM, Trass3r wrote: I just wanted to drop a note to say that i have tried it and it works quite well. I am wrapping a small C++ library and using in my D application. Is there a tutorial (not 50 pages of text) about what needs to be done to support a C++ library? I don't kn

Re: Announcing: D support in SWIG

2011-01-19 Thread Trass3r
I just wanted to drop a note to say that i have tried it and it works quite well. I am wrapping a small C++ library and using in my D application. Is there a tutorial (not 50 pages of text) about what needs to be done to support a C++ library?

Re: Announcing: D support in SWIG

2011-01-19 Thread Jordi
++ libraries from various target languages, including C#, Go, Java, Ruby, Python … and, since I merged my work into SWIG trunk a few days ago, also D, both version 1 and 2. I have put up a short description of it at my blog (http://klickverbot.at/blog/2010/11/announcing-d-support-in-swig/), but to give it

Re: Announcing: D support in SWIG

2010-12-13 Thread Jimmy Cao
Take a look: http://irrlichtd.codeplex.com/ I think this is easy and fun to do, so I'll work on it in my spare time.

Re: Announcing: D support in SWIG

2010-12-10 Thread Andrej Mitrovic
On 12/10/10, BLS wrote: > On 08/12/2010 20:35, Andrej Mitrovic wrote: >> I did a configure with: >> --with-d2-compiler=C:\DMD\dmd2\windows\bin\dmd.exe and make to build >> swig. > > Guess you mean .. > --with-d2-compiler=C:/DMD/dmd2/windows/bin/dmd.exe > > Bjoern > Backslashes worked fine for me

Re: Announcing: D support in SWIG

2010-12-10 Thread BLS
On 08/12/2010 20:35, Andrej Mitrovic wrote: I did a configure with: --with-d2-compiler=C:\DMD\dmd2\windows\bin\dmd.exe and make to build swig. Guess you mean .. --with-d2-compiler=C:/DMD/dmd2/windows/bin/dmd.exe Bjoern

Re: Announcing: D support in SWIG

2010-12-09 Thread BLS
On 10/12/2010 01:27, klickverbot wrote: Regarding your specific problem: Generally speaking, operator overloading is WIP (hopefully I find time to implement it for D2 during the weekend), but implicit conversions can't really be mapped to D anyway, so just use the %rename directive of SWIG to map

Re: Announcing: D support in SWIG

2010-12-09 Thread Jimmy Cao
On Thu, Dec 9, 2010 at 8:49 PM, BLS wrote: > > Whatever it is, or will be, I don't care. It is just that IMHO we need a > discussion platform. > Definitely also IRC. The usual #d for now, then maybe #d.swig if there is more interest? (FreeNode)

Re: Announcing: D support in SWIG

2010-12-09 Thread Andrej Mitrovic
Yeah, maybe dsource wasn't such a good idea. It does have a lot of dead projects and nobody wants to put up categories to split up D1/D2 projects (and the forums are slw). Maybe a better solution is to just add any new interfaces to a D Wiki page @ http://www.prowiki.org/wiki4d/wiki.cgi On 12

Re: Announcing: D support in SWIG

2010-12-09 Thread BLS
On 10/12/2010 01:27, klickverbot wrote: Regarding your specific problem: Generally speaking, operator overloading is WIP (hopefully I find time to implement it for D2 during the weekend), but implicit conversions can't really be mapped to D anyway, so just use the %rename directive of SWIG to map

Re: Announcing: D support in SWIG

2010-12-09 Thread BLS
On 10/12/2010 01:27, klickverbot wrote: Discussing SWIG and D is an entirely different topic, for which there are many possible options: a newly created digitalmars.D.bindings NG, a forum hosted somewhere (DSource, …), Stackoverflow (tagged »swig« and »d« or maybe even »swig-d«), the Swig-user ma

Re: Announcing: D support in SWIG

2010-12-09 Thread klickverbot
On 12/10/10 12:49 AM, Andrej Mitrovic wrote: […] Thanks for writing that D-specific documentation, klickverbot! Well, as for most small-scale OSS projects, writing good docs is pretty boring when you can hack right away on some code as well, so I could really need some suggestions on the D s

Re: Announcing: D support in SWIG

2010-12-09 Thread klickverbot
On 12/10/10 12:12 AM, BLS wrote: Vote++ A discussion Forum would be nice too. I am just trying to figure out what to do with : operator HWND() const; Any suggestions on that? The previous attempt for D support in SWIG (which became unmaintained at a rather early stage and didn't make its way

Re: Announcing: D support in SWIG

2010-12-09 Thread Andrej Mitrovic
I just had a 30-minute look at the documentation. There's a whole section on interfacing with C++, so maybe you can find some help there. It looks pretty trivial to wrap C code (in most cases we don't even need SWIG for C), but C++ is a different beast. Thanks for writing that D-specific documenta

Re: Announcing: D support in SWIG

2010-12-09 Thread BLS
On 09/12/2010 23:47, Andrej Mitrovic wrote: I'm thinking maybe we should have a SWIG interfaces project on dsource, if one doesn't exist yet. If someone made SWIG interfaces for some big library it would be cool to share it at one place so anyone could download them. Vote++ A discussion Forum w

Re: Announcing: D support in SWIG

2010-12-09 Thread Andrej Mitrovic
I'm thinking maybe we should have a SWIG interfaces project on dsource, if one doesn't exist yet. If someone made SWIG interfaces for some big library it would be cool to share it at one place so anyone could download them. On 12/9/10, klickverbot wrote: > On 12/9/10 10:12 PM, Andrej Mitrovic wro

Re: Announcing: D support in SWIG

2010-12-09 Thread klickverbot
On 12/9/10 10:12 PM, Andrej Mitrovic wrote: I'm curious, can you use SWIG with D2 on Linux as well? From what I've read so far in the docs, SWIG creates an extension module that can be compiled as a dynamic library. But afaik there are some issues with using dynamic libs in Linux with D2, at leas

Re: Announcing: D support in SWIG

2010-12-09 Thread Andrej Mitrovic
I'm curious, can you use SWIG with D2 on Linux as well? From what I've read so far in the docs, SWIG creates an extension module that can be compiled as a dynamic library. But afaik there are some issues with using dynamic libs in Linux with D2, at least that's what I've read a few times in the new

Re: Announcing: D support in SWIG

2010-12-08 Thread Jimmy Cao
I've been trying to wrap Irrlicht with this (on Windows) lately. Things are working well. On Wed, Dec 8, 2010 at 1:35 PM, Andrej Mitrovic wrote: > Hey hey, good news, got it all working now. > > I did a configure with: > --with-d2-compiler=C:\DMD\dmd2\windows\bin\dmd.exe and make to build > swig

Re: Announcing: D support in SWIG

2010-12-08 Thread Andrej Mitrovic
Hey hey, good news, got it all working now. I did a configure with: --with-d2-compiler=C:\DMD\dmd2\windows\bin\dmd.exe and make to build swig. Then I've ran one example in: C:\MinGW\msys\1.0\src\swig\Examples\d\class\ with: make D_VERSION=2 . It builds and runs fine. I've only tried one example,

Re: Announcing: D support in SWIG

2010-12-08 Thread Andrej Mitrovic
Am I supossed to use --with-d2-compiler=C:\DMD\dmd2\windows\bin\dmd.exe or just --with-d2-compiler=C:\DMD\ path when calling configure? On 12/8/10, Andrej Mitrovic wrote: > Okay, got it working now. > > I've installed MinGW (again) via that new mingw-get installer from > sourceforge. And I had th

Re: Announcing: D support in SWIG

2010-12-08 Thread Andrej Mitrovic
Okay, got it working now. I've installed MinGW (again) via that new mingw-get installer from sourceforge. And I had the same error message as you, so I've downloaded pcre-8.01.tar.bz2 from ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/, I've put it in my swig svn directory (C:\MinGW\msys\1

Re: Announcing: D support in SWIG

2010-12-08 Thread BLS
On 08/12/2010 18:48, Andrej Mitrovic wrote: On 11/24/10, BLS wrote: Hi David, let me shake your hands and say Thank You, GREAT work. It was a bit difficult to build SWIG SVN on Windows. Just finding those automake/autoconf/bison binaries is a detectives' work. How did u build from svn? If

Re: Announcing: D support in SWIG

2010-12-08 Thread Andrej Mitrovic
On 11/24/10, BLS wrote: > Hi David, > let me shake your hands and say Thank You, GREAT work. > > It was a bit difficult to build SWIG SVN on Windows. Just finding those automake/autoconf/bison binaries is a detectives' work. How did u build from svn?

Re: Announcing: D support in SWIG

2010-12-02 Thread klickverbot
On 12/2/10 6:00 PM, klickverbot wrote: The details, along with a sed script for fixing any custom typemaps: ttp://klickverbot.at/blog/2010/12/swig-d-breaking-name-changes/ Oops, there is an h missing, that should have obviously been http://klickverbot.at/blog/2010/12/swig-d-breaking-name-chang

Re: Announcing: D support in SWIG

2010-12-02 Thread klickverbot
Sorry if this might come a bit late for anybody following SWIG SVN trunk, but I needed to make a breaking naming change to the D module of SWIG to bring it more in line with the C# support. The details, along with a sed script for fixing any custom typemaps: ttp://klickverbot.at/blog/2010/12/s

Re: Announcing: D support in SWIG

2010-11-24 Thread BLS
://klickverbot.at/blog/2010/11/announcing-d-support-in-swig/), but to give it a whirl, just head over to the SWIG SVN and build it from there (http://swig.org/svn.html). I would be glad if some brave souls could go ahead and test it in real-world use cases before it is officially released with SWIG for the

Re: Announcing: D support in SWIG

2010-11-22 Thread Fawzi Mohamed
. I have put up a short description of it at my blog (http://klickverbot.at/blog/2010/11/announcing-d-support-in-swig/ ), but to give it a whirl, just head over to the SWIG SVN and build it from there (http://swig.org/svn.html). I would be glad if some brave souls could go ahead and test it in

Re: Announcing: D support in SWIG

2010-11-21 Thread BCS
Hello klickverbot, In a nutshell, SWIG is a »glue code« generator, allowing you to access C/C++ libraries from various target languages, including C#, Go, Java, Ruby, Python . and, since I merged my work into SWIG trunk a few days ago, also D, both version 1 and 2. I'm so tempted to go learn

Announcing: D support in SWIG

2010-11-21 Thread klickverbot
blog (http://klickverbot.at/blog/2010/11/announcing-d-support-in-swig/), but to give it a whirl, just head over to the SWIG SVN and build it from there (http://swig.org/svn.html). I would be glad if some brave souls could go ahead and test it in real-world use cases before it is officially