www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - C# interop

reply Eelco Hoogendoorn <hoogendoorn.eelco gmail.com> writes:
Hi,


large libraries and excellent toolchain, with to the
metal programming.


as to why I hate C++ so much after spending a few days
trying to get something as simple as ranges to work. But the interop works
smooth; no complaints there.

I am using visual D, if it matters any.

What would be the best way to go about this? The D documentation is kindof
cryptic to a non-professional like me. It doesnt seem as
if I will be able to use D classes inside CLI, so I think that means I might as
well ditch it altogether and just use Pinvoke?

Any suggestions are appreciated!

Regards,
Eelco
Jan 30 2011
next sibling parent "Simen kjaeraas" <simen.kjaras gmail.com> writes:
Eelco Hoogendoorn <hoogendoorn.eelco gmail.com> wrote:

 Hi,


 worlds; large libraries and excellent toolchain, with to the
 metal programming.


 reminded as to why I hate C++ so much after spending a few days
 trying to get something as simple as ranges to work. But the interop  
 works smooth; no complaints there.

 I am using visual D, if it matters any.

 What would be the best way to go about this? The D documentation is  
 kindof cryptic to a non-professional like me. It doesnt seem as
 if I will be able to use D classes inside CLI, so I think that means I  
 might as well ditch it altogether and just use Pinvoke?

 Any suggestions are appreciated!
There is at least one attempt to make a D compiler for .net, you might want to give that a try: http://dnet.codeplex.com/ -- Simen
Jan 30 2011
prev sibling parent reply Trass3r <un known.com> writes:
As Simen said, there was an attempt to create an IL backend but it hasn't  
been updated since Aug 2009 and even it compiled you probably wouldn't  
have much fun with it.
You could try to use a C bridge. But even then, I don't see the benefit.
Jan 30 2011
parent Eelco Hoogendoorn <hoogendoorn.eelco gmail.com> writes:
Given that I explicitly stated my interest in to the
metal programming, I dont think the .NET implementation
will do me any good, no matter how perfectly implemented
it is.
Jan 30 2011