在.NET环境中使用D编程语言 [英] Using D programming language in a .NET context

查看:144
本文介绍了在.NET环境中使用D编程语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很好奇:有没有人使用ð与.NET语言?是,即使可能吗?什么样的东西是比较容易/情理之中的事D中这是很难做到的,比如C ++ / CLI?

I'm curious: has anyone used D together with .NET languages? Is that even possible? What kind of stuff is easier/makes sense to do in D that's hard to do in, say, C++/CLI?

推荐答案

使用D-与.NET一起是非常可能的。 究其原因:

Using D together with .NET is very possible. The reason:

  • 在.NET能够导入使用<一个非托管的C库(.dll的内外销C函数) href="http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.dllimportattribute(VS.71).aspx">dllImport属性。
  • D是能够出口的C函数。使用出口和的extern(C)属性
  • .NET is able to import unmanaged C libraries (.dll's which export C functions) using the dllImport attribute.
  • D is able to export C functions. using the export and extern (C) attributes

因此​​,考虑到技术问题,这是完全有可能的。

So the considering the technicalities, it's completely possible.

至于是什么,D是他们比C ++更简单,答案相当简单:一切。 从某种意义上说,D是真的了C只是一个副本++与刚才的一切更简单的完成。当然,这只是一个故事的一半,但相当真实的。

With regards to what D makes easier than C++, the answer is fairly easy: "Everything". In a sense, D is really just a copy of C++ with just about everything done simpler. Sure that's only a half story, but reasonably true.

这篇关于在.NET环境中使用D编程语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆