重载,模板,异常处理和c [英] overloading, template, exception handling and c

查看:57
本文介绍了重载,模板,异常处理和c的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么没有重载(函数和运算符),函数模板

和c中的异常处理支持?毕竟这些都很有用

编程结构。


什么阻止ANSI / ISO委员会将这些添加到c?

Why there is no overloading (function and operator), function templates
and exception handling support in c? after all these are all useful
programming constructs.

What prevents ANSI/ISO committee to add these into c?

推荐答案

v4vijayakumaraécrit:
v4vijayakumar a écrit :
为什么没有重载(函数和运算符),函数模板
和异常处理支持C?毕竟这些都是有用的编程结构。

什么阻止ANSI / ISO委员会将这些添加到c?
Why there is no overloading (function and operator), function templates
and exception handling support in c? after all these are all useful
programming constructs.

What prevents ANSI/ISO committee to add these into c?




嗯,lcc-win32 C编译器提供了其中的一些。


参见文档
ftp://ftp.cs.virginia.edu/pub/lcc-win32/proposal.pdf


详细说明



Well, the lcc-win32 C compiler provides some of those.

See the document
ftp://ftp.cs.virginia.edu/pub/lcc-win32/proposal.pdf

for a detailed description


v4vijayakumar写道:
v4vijayakumar wrote:
为什么没有重载(函数和运算符),函数模板< br和c中的异常处理支持?毕竟这些都是有用的编程结构。

什么阻止ANSI / ISO委员会将这些添加到c?
Why there is no overloading (function and operator), function templates
and exception handling support in c? after all these are all useful
programming constructs.

What prevents ANSI/ISO committee to add these into c?



因为它们可以找到在其他地方,例如C ++。 C做了它b / b
的确如此,如果你想做别的事情,可以使用其他工具。


-

Ian Collins 。


Because they can be found elsewhere, C++ for example. C does what it
does, if you want do do something else, use another tool.

--
Ian Collins.


Ian Collins写道:
Ian Collins wrote:
因为它们可以在其他地方找到,例如C ++。 C做了它做的事情,如果你想做别的事情,可以使用其他工具。
Because they can be found elsewhere, C++ for example. C does what it
does, if you want do do something else, use another tool.




问题是为什么这些还不是C? " ;.恕我直言,如果C ++或任何其他

编程语言都有这些,那么它就不能成为C的解决方案。



the question is "why these are not C yet?". IMHO, If C++ or any other
programming languages have these then it can not be a solution to C.


这篇关于重载,模板,异常处理和c的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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