473,387 Members | 1,453 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

C's compromise and recognition to the new C++

K&R say in the preface of their 2nd edition, "We used Bjarne
Stroustrup's C++ translator extensively for local testing of our
programs".

I don't know where they used the C++ in projects or only this book
source. But is it a message of the compromise and recognition to the
new C++?

Jun 5 '07 #1
12 1527
On Mon, 04 Jun 2007 19:57:43 -0700, "lovecreatesbea...@gmail.com"
<lo***************@gmail.comwrote in comp.lang.c:
K&R say in the preface of their 2nd edition, "We used Bjarne
Stroustrup's C++ translator extensively for local testing of our
programs".

I don't know where they used the C++ in projects or only this book
source. But is it a message of the compromise and recognition to the
new C++?
No, this is a recognition of the fact that this book, and its code,
was written beginning several years before the first ANSI C standard
was finalized and approved.

The single most important feature added to the C language _ever_, not
just by the first ANSI standard, was function prototypes. C++ had
prototypes from the beginning, as they are necessary for function
overloading. Most C compilers at the time did not.

So using the Cfront preprocessor was the best way to get prototype
checking.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html
Jun 5 '07 #2
On 6 5 , 12 10 , Jack Klein <jackkl...@spamcop.netwrote:
On Mon, 04 Jun 2007 19:57:43 -0700, "lovecreatesbea...@gmail.com"
<lovecreatesbea...@gmail.comwrote in comp.lang.c:
K&R say in the preface of their 2nd edition, "We used Bjarne
Stroustrup's C++ translator extensively for local testing of our
programs".
I don't know where they used the C++ in projects or only this book
source. But is it a message of the compromise and recognition to the
new C++?

No, this is a recognition of the fact that this book, and its code,
was written beginning several years before the first ANSI C standard
was finalized and approved.

The single most important feature added to the C language _ever_, not
just by the first ANSI standard, was function prototypes. C++ had
prototypes from the beginning, as they are necessary for function
overloading. Most C compilers at the time did not.

So using the Cfront preprocessor was the best way to get prototype
checking.

--
Jack Klein
Home:http://JK-Technology.Com
FAQs for
comp.lang.chttp://c-faq.com/
comp.lang.c++http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html
i'm a Chinese student, my msm ID is :fl*******@163.com, could you
please add me as your fiend??

Jun 5 '07 #3
On 5 Jun, 05:10, Jack Klein <jackkl...@spamcop.netwrote:
On Mon, 04 Jun 2007 19:57:43 -0700, "lovecreatesbea...@gmail.com"
<lovecreatesbea...@gmail.comwrote in comp.lang.c:
K&R say in the preface of their 2nd edition, "We used Bjarne
Stroustrup's C++ translator extensively for local testing of our
programs".
I don't know where they used the C++ in projects or only this book
source. But is it a message of the compromise and recognition to the
new C++?

No, this is a recognition of the fact that this book, and its code,
was written beginning several years before the first ANSI C standard
was finalized and approved.

The single most important feature added to the C language _ever_, not
just by the first ANSI standard, was function prototypes. C++ had
prototypes from the beginning, as they are necessary for function
overloading. Most C compilers at the time did not.
what I've always been curious about is why prototypes wern't in
from the beginning? You actual type *less* with prototypes.

So using the Cfront preprocessor was the best way to get prototype
checking.

--
Nick Keighley

Jun 5 '07 #4
Nick Keighley said:
On 5 Jun, 05:10, Jack Klein <jackkl...@spamcop.netwrote:
<snip>
>The single most important feature added to the C language _ever_, not
just by the first ANSI standard, was function prototypes. C++ had
prototypes from the beginning, as they are necessary for function
overloading. Most C compilers at the time did not.

what I've always been curious about is why prototypes wern't in
from the beginning? You actual type *less* with prototypes.
Because dmr didn't think of using them?

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.
Jun 5 '07 #5
Richard Heathfield wrote, On 05/06/07 09:51:
Nick Keighley said:
>On 5 Jun, 05:10, Jack Klein <jackkl...@spamcop.netwrote:

<snip>
>>The single most important feature added to the C language _ever_, not
just by the first ANSI standard, was function prototypes. C++ had
prototypes from the beginning, as they are necessary for function
overloading. Most C compilers at the time did not.
what I've always been curious about is why prototypes wern't in
from the beginning? You actual type *less* with prototypes.

Because dmr didn't think of using them?
Did B have prototypes? If not then it was probably a carry over. Also
possibly to simplify the compiler.
--
Flash Gordon
Jun 5 '07 #6
Nick Keighley <ni******************@hotmail.comwrites:
On 5 Jun, 05:10, Jack Klein <jackkl...@spamcop.netwrote:
>On Mon, 04 Jun 2007 19:57:43 -0700, "lovecreatesbea...@gmail.com"
<lovecreatesbea...@gmail.comwrote in comp.lang.c:
K&R say in the preface of their 2nd edition, "We used Bjarne
Stroustrup's C++ translator extensively for local testing of our
programs".
I don't know where they used the C++ in projects or only this book
source. But is it a message of the compromise and recognition to the
new C++?

No, this is a recognition of the fact that this book, and its code,
was written beginning several years before the first ANSI C standard
was finalized and approved.

The single most important feature added to the C language _ever_, not
just by the first ANSI standard, was function prototypes. C++ had
prototypes from the beginning, as they are necessary for function
overloading. Most C compilers at the time did not.

what I've always been curious about is why prototypes wern't in
from the beginning? You actual type *less* with prototypes.
C evolved from an untyped language, B. One gets the feeling from what
they have written about it that the designers wanted to add as little
type information as possible. They were great fans of the simplicity
of B (and BCPL) and had seen the huge complexity of "modern" typed
languages like Algol 68.

Type information was added so that character arrays (and hence
strings) could be supported properly on the byte addressed hardware
that was being targeted. I guess just enough was put in so + (and
friends) would not what to add to a pointer. You don't need
prototypes for that.

--
Ben.
Jun 5 '07 #7
In article <87************@bsb.me.uk>,
Ben Bacarisse <be********@bsb.me.ukwrote:
>They were great fans of the simplicity
of B (and BCPL) and had seen the huge complexity of "modern" typed
languages like Algol 68.
If you're going to put quotes around "modern" you should put them around
"huge" too.

-- Richard
--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
Jun 5 '07 #8
ri*****@cogsci.ed.ac.uk (Richard Tobin) writes:
In article <87************@bsb.me.uk>,
Ben Bacarisse <be********@bsb.me.ukwrote:
>>They were great fans of the simplicity
of B (and BCPL) and had seen the huge complexity of "modern" typed
languages like Algol 68.

If you're going to put quotes around "modern" you should put them around
"huge" too.
If you mean that both "huge" and "modern" were perceptions of the
time, then I wholeheartedly agree.

--
Ben.
Jun 5 '07 #9
flyreally wrote:
>
.... snip ...
>
i'm a Chinese student, my msm ID is :fl*******@163.com, could you
please add me as your fiend??
Oh very well. I have a large collection of fiends (look it up).

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Jun 6 '07 #10
Nick Keighley wrote:
Jack Klein <jackkl...@spamcop.netwrote:
.... snip ...
>>
The single most important feature added to the C language _ever_,
not just by the first ANSI standard, was function prototypes.
C++ had prototypes from the beginning, as they are necessary for
function overloading. Most C compilers at the time did not.

what I've always been curious about is why prototypes wern't in
from the beginning? You actual type *less* with prototypes.
Probably because C was born out of B and Fortran. C just grew,
while Pascal was designed.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Jun 6 '07 #11
Richard Tobin wrote:
Ben Bacarisse <be********@bsb.me.ukwrote:
>They were great fans of the simplicity of B (and BCPL) and had
seen the huge complexity of "modern" typed languages like Algol 68.

If you're going to put quotes around "modern" you should put them
around "huge" too.
Also for C. Compare the size of the C standard and the Pascal
standard. The C version is about twice the size of the _extended_
Pascal standard. This is because there are more peculiar
conditions to consider.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Jun 6 '07 #12
On Tue, 05 Jun 2007 12:25:24 +0100, Ben Bacarisse
<be********@bsb.me.ukwrote:
Nick Keighley <ni******************@hotmail.comwrites:
<snip>
what I've always been curious about is why prototypes wern't in
from the beginning? You actual type *less* with prototypes.

C evolved from an untyped language, B. One gets the feeling from what
they have written about it that the designers wanted to add as little
type information as possible. <snip>
Plus, most (other) typed 3GLs of the time -- FORTRAN, COBOL, PL/I --
had the list-of-ids then (list-of-)decls syntax. AFAIK only a68 then
had types-within-routine-decl -- and it allowed and arguably
encouraged complicated type specs that could rather frighten the
typical programmer, although not an experienced language implementer.
(Pascal and other Wirthians did so later. Don't know about JOVIAL.)

- formerly david.thompson1 || achar(64) || worldnet.att.net
Jul 1 '07 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: CJ Oxx | last post by:
I have a problem with browser charset recognition when using PHP 4.1.2 (this is the PHP version which our hosting company provides). For charset recognition, I use the following meta-tag: <meta...
1
by: Junior | last post by:
Hi guys. I want to incorporate voice recognition in a new .NET application I'm developing. I would like to recognize among a group of 30-40 words. But I would also like to avoid using 3dr party...
1
by: Meena | last post by:
In our company we are trying to add speech recognition to our products. I downloaded the Speech Recognition engine. Now there is a component called Microsoft Direct Speech Recognition in VB.Net...
4
by: Ian Dickinson | last post by:
Hi My name is Ian Dickinson and I am a professional software developer working in the UK and reasonably familiar with Python. However a friend of mine who is a special educational needs teacher...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.