是Objective-C ++和Objective-C完全不同的语言吗? [英] Is Objective-C++ a totally different language from Objective-C?

查看:106
本文介绍了是Objective-C ++和Objective-C完全不同的语言吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题所述……他们被认为是不同的语言吗?例如,如果您使用C ++和Objective-C ++的组合编写了一个应用程序,您会认为它是用C ++和Objective-C,C ++和Objective-C ++或全部这三种语言编写的吗?

As the title says... are they considered different languages? For example if you've written an application using a combination of C++ and Objective-C++ would you consider it to have been written in C++ and Objective-C, C++ and Objective-C++ or all three?

即使C ++和C直接兼容,显然C和C ++是不同的语言,Objective-C ++和Objective-C的情况如何?

Obviously C and C++ are different languages even though C++ and C are directly compatible, how is the situation with Objective-C++ and Objective-C?

推荐答案

Objective-C ++仅允许将Objective-C和C ++代码混合在一起(注意).它本身并不是一种语言,而是一种允许两种语言混合的机制.

Objective-C++ simply allows Objective-C and C++ code to be mixed (with caveats). It's not really a language on its own so much as a mechanism for allowing the two languages to intermix.

这篇关于是Objective-C ++和Objective-C完全不同的语言吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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