怎样才能增加Objective-C的支持,.NET公共语言运行库? [英] What will it take to add Objective-C support to the .NET common language runtime?

查看:167
本文介绍了怎样才能增加Objective-C的支持,.NET公共语言运行库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能为.NET CLR支持Objective-C的?是否有任何原因(无论是从法律和实施过程中的)的角度来看,为什么这是不可能的?

Is it possible for the .NET CLR to support Objective-C? Are there any reasons (either from a legal or implementational) standpoint why this wouldn't be possible?

在跨平台应用开发的精神,这将是很好能够编写和运行在Windows机器上的Objective-C的应用程序。至少我认为它会。

In the spirit of cross-platform application development, it would be nice to be able to write and run Objective-c applications on Windows machines. At least i think it would.

推荐答案

目标-C是一个严格的超C.这样的,它有很多功能,如指针不好翻​​译到.NET。当然,它可以是 - 在实践中 - 多数Objective-C程序都写在这样一种方式,他们也对编译更紧密定义的语言规范的版本,这是更严格的,但可以转化为安全code。

Objective-C is a strict superset of C. As such, it's got a lot of features like pointers that translate poorly onto .NET. Of course, it may be that -- in practice -- most Objective-C programs are written in such a way that they would also compile against a more tightly-defined version of the language spec that was more restrictive but could be translated into safe code.

假如是这样的话,Objective-C的方法分发部分是天作之合的 DLR 。实际上,我认为建立这样一个端口。

Assuming this is the case, the method dispatch part of Objective-C is a natural fit for the dynamic capabilities of the DLR. I've actually considered creating such a port.

这篇关于怎样才能增加Objective-C的支持,.NET公共语言运行库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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