|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D - interop with other environments
Hello, I really like D syntax and would like to create one library in D language. Now, is it possible to use this library in .NET, Python, Ruby or PHP? How it could be done? You don't have to explain all, just point me please in the right direction. I was trying to find some more information but the fact that the language is called "D", it's pretty hard to google these things. Apr 25 2007
mike wrote:the fact that the language is called "D", it's pretty hard to google these things. Apr 26 2007
On Thu, 26 Apr 2007 02:49:34 -0400 mike <mike nospam.com> wrote:Hello, I really like D syntax and would like to create one library in D language. Now, is it possible to use this library in .NET, Python, Ruby or PHP? How it could be done? You don't have to explain all, just point me please in the right direction. I was trying to find some more information but the fact that the language is called "D", it's pretty hard to google these things. Apr 26 2007
On Thu, 26 Apr 2007 09:56:54 +0200, Alexander Panek <alexander.panek brainsware.org> wrote:On Thu, 26 Apr 2007 02:49:34 -0400 mike <mike nospam.com> wrote:Hello, I really like D syntax and would like to create one library in D language. Now, is it possible to use this library in .NET, Python, Ruby or PHP? How it could be done? You don't have to explain all, just point me please in the right direction. I was trying to find some more information but the fact that the language is called "D", it's pretty hard to google these things. Apr 26 2007
Alexander Panek Wrote:On Thu, 26 Apr 2007 13:06:03 +0300 Max Samukha <samukha voliacable.com> wrote:Using what they call P/Invoke, you should be able to access from a .NET assembly any C functions exported by a dll compiled from D source. If you are adventurous enough you could even try to create a COM wrapper around a .NET assembly and use it from D. Apr 26 2007
== Quote from Alexander Panek (alexander.panek brainsware.org)'s articleOn Thu, 26 Apr 2007 13:06:03 +0300 Max Samukha <samukha voliacable.com> wrote:Using what they call P/Invoke, you should be able to access from a .NET assembly any C functions exported by a dll compiled from D source. If you are adventurous enough you could even try to create a COM wrapper around a .NET assembly and use it from D. Apr 26 2007
Thank you all for feedback, I'm really surprised how active and useful this mailing-list is. Max, you said, I could have "C functions exported by a dll compiled from D source" and I think this is actually what I'm looking for. Do you know how it could be done? ThanksUsing what they call P/Invoke, you should be able to access from a .NET assembly any C functions exported by a dll compiled from D source. If you are adventurous enough you could even try to create a COM wrapper around a .NET assembly and use it from D. Apr 26 2007
mike wrote:Thank you all for feedback, I'm really surprised how active and useful this mailing-list is. Max, you said, I could have "C functions exported by a dll compiled from D source" and I think this is actually what I'm looking for. Do you know how it could be done? ThanksUsing what they call P/Invoke, you should be able to access from a .NET assembly any C functions exported by a dll compiled from D source. If you are adventurous enough you could even try to create a COM wrapper around a .NET assembly and use it from D. Apr 26 2007
On Thu, 26 Apr 2007 13:06:03 +0300 Max Samukha <samukha voliacable.com> wrote:Using what they call P/Invoke, you should be able to access from a .NET assembly any C functions exported by a dll compiled from D source. If you are adventurous enough you could even try to create a COM wrapper around a .NET assembly and use it from D. Apr 26 2007
== Quote from mike (mike nospam.com)'s article ...I was trying to find some more information but the fact that the language is called "D", it's pretty hard to google these things. Apr 26 2007
|