Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Why was the .h dropped in std headers?
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.)

Report this thread to moderator Post Follow-up to this message
Old Post
Derek
12-30-04 08:58 PM


Re: Why was the .h dropped in std headers?
"Derek" <user@nospam.org> wrote in message
news:33io6aF40n39vU1@individual.net...
> 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.)

>
> (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



Report this thread to moderator Post Follow-up to this message
Old Post
Mike Wahler
12-30-04 08:58 PM


Re: Why was the .h dropped in std headers?
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.)

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

Jeff



Report this thread to moderator Post Follow-up to this message
Old Post
Jeff Flinn
12-30-04 08:58 PM


Re: Why was the .h dropped in std headers?
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.

Report this thread to moderator Post Follow-up to this message
Old Post
Victor Bazarov
12-30-04 08:58 PM


Re: Why was the .h dropped in std headers?
Victor Bazarov wrote:
> Derek wrote:
> 
>
> 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. :)

Report this thread to moderator Post Follow-up to this message
Old Post
Derek
12-30-04 08:58 PM


Re: Why was the .h dropped in std headers?
Mike Wahler wrote: 
>
> 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. :)  I only made that
comment as a preemptive strike against the "ask in comp.std.c++"
replies that I was expecting. :)

Report this thread to moderator Post Follow-up to this message
Old Post
Derek
12-30-04 08:58 PM


Re: Why was the .h dropped in std headers?
Derek wrote:
> 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

Report this thread to moderator Post Follow-up to this message
Old Post
Jonathan Mcdougall
12-30-04 08:58 PM


Re: Why was the .h dropped in std headers?
Derek wrote:

> 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. :)  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?

--
Salu2

Report this thread to moderator Post Follow-up to this message
Old Post
Julián Albo
12-30-04 08:58 PM


Re: Why was the .h dropped in std headers?
Julián Albo wrote: 
>
> May I ask what is the urgence in that type of question?

There was no urgency except my own curiosity.

Report this thread to moderator Post Follow-up to this message
Old Post
Derek
12-30-04 08:58 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

C++ archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 10:27 AM.

 

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.