C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Why was the .h dropped in std headers?

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++)
View previous topic :: View next topic  
Author Message
Derek
Guest





PostPosted: Thu Dec 30, 2004 4:20 pm    Post subject: Why was the .h dropped in std headers? Reply with quote



What was the rationale for dropping the .h suffix for standard
headers (e.g., <iostream> vs <iostream.h>)? Just curious.

(I already asked in comp.std.c++, but the moderators there work
like molasses -- my post from yesterday still hasn't appeared.)
Back to top
Mike Wahler
Guest





PostPosted: Thu Dec 30, 2004 4:43 pm    Post subject: Re: Why was the .h dropped in std headers? Reply with quote




"Derek" <user (AT) nospam (DOT) org> wrote

Quote:
What was the rationale for dropping the .h suffix for standard
headers (e.g., <iostream> vs <iostream.h>)? Just curious.

You'd have to ask the standards committee members to be sure,
but I suspect at least part of the reason is to reduce the
possiblity of conflicts with the inherited C headers (e.g
<string.h> and <string>, each of which declares completely
different things.)

Quote:

(I already asked in comp.std.c++, but the moderators there work
like molasses -- my post from yesterday still hasn't appeared.)

Moderated groups are 'slow' by nature. I don't think it's
legitmate to call the moderators 'slow as molasses', as their
job is an unpaid volunteer activity. I'm sure they have their
own lives to deal with too.

-Mike



Back to top
Jeff Flinn
Guest





PostPosted: Thu Dec 30, 2004 4:46 pm    Post subject: Re: Why was the .h dropped in std headers? Reply with quote



Derek wrote:
Quote:
What was the rationale for dropping the .h suffix for standard
headers (e.g., <iostream> vs <iostream.h>)? Just curious.

(I already asked in comp.std.c++, but the moderators there work
like molasses -- my post from yesterday still hasn't appeared.)

Your post and responses appeared there yesterday! Prehaps it's your news
server that's slow as molasses.

Jeff



Back to top
Victor Bazarov
Guest





PostPosted: Thu Dec 30, 2004 4:50 pm    Post subject: Re: Why was the .h dropped in std headers? Reply with quote

Derek wrote:
Quote:
What was the rationale for dropping the .h suffix for standard
headers (e.g., <iostream> vs <iostream.h>)? Just curious.

(I already asked in comp.std.c++, but the moderators there work
like molasses -- my post from yesterday still hasn't appeared.)

I read it and the replies to it yesterday. Or was it somebody else's
question? I saw 4 replies, IIRC, one from Andrew Koenig.

Back to top
Jonathan Mcdougall
Guest





PostPosted: Thu Dec 30, 2004 4:50 pm    Post subject: Re: Why was the .h dropped in std headers? Reply with quote

Derek wrote:
Quote:
What was the rationale for dropping the .h suffix for standard
headers (e.g., <iostream> vs <iostream.h>)? Just curious.

Because there was a de facto standard that most
programmers were using and the names of headers
was part of it. C++98 took these well-known
names, modified them a bit and tried to make their
content (if only the names used, such as cout and
cin) as similar as possible to what people were
used to. Finally, to avoid having two
<iostream.h> on the same machine working
differently, the .h was dropped.

Stroustrup also says the .h is redundant because
#include <> specifies a header, but that's a bit
far fetched.


Jonathan

Back to top
Derek
Guest





PostPosted: Thu Dec 30, 2004 5:00 pm    Post subject: Re: Why was the .h dropped in std headers? Reply with quote

Victor Bazarov wrote:
Quote:
Derek wrote:

What was the rationale for dropping the .h suffix for standard
headers (e.g., <iostream> vs <iostream.h>)? Just curious.

(I already asked in comp.std.c++, but the moderators there work
like molasses -- my post from yesterday still hasn't appeared.)

I read it and the replies to it yesterday. Or was it somebody else's
question? I saw 4 replies, IIRC, one from Andrew Koenig.

Thanks for the heads up. It looks like my news reader/service is
not picking up recent posts from comp.std.c++. I guess those
volunteer moderators are faster than I gave them credit for. :)

Back to top
Derek
Guest





PostPosted: Thu Dec 30, 2004 5:11 pm    Post subject: Re: Why was the .h dropped in std headers? Reply with quote

Mike Wahler wrote:
Quote:
(I already asked in comp.std.c++, but the moderators there work
like molasses -- my post from yesterday still hasn't appeared.)

Moderated groups are 'slow' by nature. I don't think it's
legitmate to call the moderators 'slow as molasses', as their
job is an unpaid volunteer activity. I'm sure they have their
own lives to deal with too.

First, it's my news service that's slow, not the moderators --
apparently I received replies yesterday, though I still can't see
them through my usual means. Second, I wasn't knocking the
moderators and I know they have lives. Smile I only made that
comment as a preemptive strike against the "ask in comp.std.c++"
replies that I was expecting. :)

Back to top
Julián Albo
Guest





PostPosted: Thu Dec 30, 2004 6:06 pm    Post subject: Re: Why was the .h dropped in std headers? Reply with quote

Derek wrote:

Quote:
First, it's my news service that's slow, not the moderators --
apparently I received replies yesterday, though I still can't see
them through my usual means. Second, I wasn't knocking the
moderators and I know they have lives. Smile I only made that
comment as a preemptive strike against the "ask in comp.std.c++"
replies that I was expecting. Smile

May I ask what is the urgence in that type of question?

--
Salu2

Back to top
Derek
Guest





PostPosted: Thu Dec 30, 2004 6:30 pm    Post subject: Re: Why was the .h dropped in std headers? Reply with quote

Julián Albo wrote:
Quote:
First, it's my news service that's slow, not the moderators --
apparently I received replies yesterday, though I still can't see
them through my usual means. Second, I wasn't knocking the
moderators and I know they have lives. Smile I only made that
comment as a preemptive strike against the "ask in comp.std.c++"
replies that I was expecting. :)

May I ask what is the urgence in that type of question?

There was no urgency except my own curiosity.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ language (comp.lang.c++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.