From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <20121119145821.GA1053@polynum.com> References: <73eb3bfac904eb3dbc1f95bddfac1b46@rei2.9hal> <20121119145821.GA1053@polynum.com> Date: Mon, 19 Nov 2012 16:17:03 +0100 Message-ID: From: =?UTF-8?B?QmVuY2UgRsOhYmnDoW4=?= To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=f46d042a0d43155a6304ceda9ca5 Subject: Re: [9fans] c++ Topicbox-Message-UUID: d98cd41c-ead7-11e9-9d60-3106f5b1d025 --f46d042a0d43155a6304ceda9ca5 Content-Type: text/plain; charset=UTF-8 If i remember correctly void foo(); in C++ is equivalent to void foo(void) in C. And the type of 'x' (character literal) in C++ is char. Apart from that C++ is a superset of C. But i think it hardly helps him. In the end he will have to follow the conventions the others use. So I'd recommend reading the code you will work on. We use C++ too. And sadly it is hardly consistent since it is written by loads of people and noone bothers to check. But it's mostly readable. No template metaprogramming voodoo. Thankfully i work on some internal tools right now so i can get away with C and yacc. I'm even using plan9 right now to write documentation for one of them :) 2012/11/19 > It was not the question (since it is not a matter of taste but of > professional need), but I find quite significant that nobody has > cited a book of the author of the language as a good reading. > > I'm sorry to say that, for me, this says something about the language > itself... > -- > Thierry Laronde > http://www.kergis.com/ > Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C > > --f46d042a0d43155a6304ceda9ca5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
If i remember correctly

void foo();

in C++ is equivalent to

void foo(v= oid)

in C. =C2=A0And the type of 'x' (char= acter literal) in C++ is char. Apart
from that C++ is a superset of C.

But i think= it hardly helps him. In the end he will have to follow the
conve= ntions the others use. So I'd recommend reading the code you will
work on. =C2=A0We use C++ too. And sadly it is hardly consistent since= it is
written by loads of people and noone bothers to check. But= it's mostly
readable. No template metaprogramming voodoo. Th= ankfully i work on some
internal tools right now so i can get away with C and yacc. I'm ev= en
using plan9 right now to write documentation for one of them := )



2012/11/19 <tlaronde@polynum.com>
It was not the question (since it is not a matter of taste but of
professional need), but I find quite significant that nobody has
cited a book of the author of the language as a good reading.

I'm sorry to say that, for me, this says something about the language itself...
--
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Thierry Laronde <tlaronde +AT+ polynum +dot+= com>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 http://www.kergis.= com/
Key fingerprint =3D 0FF7 E906 FBAF FE95 FD89 =C2=A0250D 52B1 AE95 6006 F40C=


--f46d042a0d43155a6304ceda9ca5--