gets()已经死了 [英] gets() is dead

查看:75
本文介绍了gets()已经死了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在讨论组comp.std.c中,Gwyn先生写道:


<引用>


....获取已被宣布为过时功能,并且/ b $ b已被弃用,这是我提交DR的直接结果

(最初暗示一个不那么剧烈的变化)。 (官方

影响等待将最新批次的TC包装成正式的

修改文件,并获得批准和发布。)


<结束报价>


这是一个非常积极的发展。在所有这些讨论之后,

理由占了上风,我们摆脱了那个疣。


它*可能会影响到看起来的对手。 />
这是个好消息。


jacob

In the discussion group comp.std.c Mr Gwyn wrote:

< quote >

.... gets has been declared an obsolescent feature and
deprecated, as a direct result of my submitting a DR about it
(which originally suggested a less drastic change). (The official
impact awaits wrapping up the latest batch of TCs into a formal
amending document, and getting it approved and published.)

< end quote >

This is a very positive development. After all those discussions,
reason prevailed and we got rid of that wart.

It *is* possible to influence the comitee as it seems.
This is good news.

jacob

推荐答案

4月25日星期三2007 01:02:04 + 0200,jacob navia

< ja *** @ jacob.remcomp.frwrote:
On Wed, 25 Apr 2007 01:02:04 +0200, jacob navia
<ja***@jacob.remcomp.frwrote:

>

<引用>


...获取已被宣布为过时功能和

已弃用,这是我提交DR的直接结果

(最初表明变化不大)。 (官方

影响等待将最新批次的TC包装成正式的

修改文件,并获得批准和发布。)


<结束报价>
>
< quote >

... gets has been declared an obsolescent feature and
deprecated, as a direct result of my submitting a DR about it
(which originally suggested a less drastic change). (The official
impact awaits wrapping up the latest batch of TCs into a formal
amending document, and getting it approved and published.)

< end quote >



RIP

G.


-


电子邮件:info< at> simple-line< Punkt> de

R.I.P.
G.

--

E-mail: info<at>simple-line<Punkt>de


Gregor H.< nomail @ invalidwrites:
Gregor H. <nomail@invalidwrites:

2007年4月25日星期三01:02:04 +0200,jacob navia

< ja *** @ jacob.remcomp.frwrote:
On Wed, 25 Apr 2007 01:02:04 +0200, jacob navia
<ja***@jacob.remcomp.frwrote:

><引用>

...获取已被宣布为过时功能并且已弃用,这是我提交DR的直接结果
(最初表明不太激烈)更改)。 (官方
影响等待将最新批次的TC包装成正式的修改文件,并获得批准和发布。)

<结束报价>
>< quote >

... gets has been declared an obsolescent feature and
deprecated, as a direct result of my submitting a DR about it
(which originally suggested a less drastic change). (The official
impact awaits wrapping up the latest batch of TCs into a formal
amending document, and getting it approved and published.)

< end quote >



R.I.P.


R.I.P.



它还没死。 "已过时"仅仅意味着它可以在下一版本的标准中被考虑删除(其中可能会在C99实际捕获后的某个时间发布
)。

仍需要符合要求的实现来支持gets()。


但这是摆脱它的第一步。


-

Keith Thompson(The_Other_Keith) ks***@mib.org < http: //www.ghoti.net/~kst>

圣地亚哥超级计算机中心< *< http://users.sdsc.edu/~kst>

" ;我们必须做点什么。这是事情。因此,我们必须这样做。

- Antony Jay和Jonathan Lynn,是部长

It''s not dead yet. "Deprecated" merely means that it can be
considered for removal in the next version of the standard (which
presumably will be released some time after C99 actually catches on).
Conforming implementations are still required to support gets().

But this is the first step in getting rid of it.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"


Keith Thompson说:


< snip>
Keith Thompson said:

<snip>

仍然需要符合实现来支持gets()。


但这是摆脱它的第一步。
Conforming implementations are still required to support gets().

But this is the first step in getting rid of it.



当然,第一步是持续的愤怒和恐怖表现在其多年来的长期生存期间很多

的人,直到ISO为自己的不充分解释而感到尴尬

因为它的继续存在?


下一站:未修改%在scanf中。


-

Richard Heathfield

Usenet是一个奇怪的地方 - dmr 29/7/1999
http://www.cpax.org.uk

电子邮件:rjh在上述域名中, - www。

Surely the first step was the continual rage and horror expressed at its
prolonged survival, over a period of many years, by a great many
people, until ISO were embarrassed by their own inadequate explanations
for its continued existence?

Next stop: unmodified %s in scanf.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.


这篇关于gets()已经死了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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