From owner-freebsd-chat@FreeBSD.ORG  Tue Apr 27 19:39:29 2004
Return-Path: <owner-freebsd-chat@FreeBSD.ORG>
Delivered-To: freebsd-chat@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 0A5B816A4CE
	for <chat@freebsd.org>; Tue, 27 Apr 2004 19:39:29 -0700 (PDT)
Received: from mx.tele-kom.ru (mx.tele-kom.ru [213.80.148.6])
	by mx1.FreeBSD.org (Postfix) with SMTP id D013843D66
	for <chat@freebsd.org>; Tue, 27 Apr 2004 19:39:27 -0700 (PDT)
	(envelope-from doublef@tele-kom.ru)
Received: (qmail 78697 invoked by uid 555); 28 Apr 2004 06:39:26 +0400
Received: from shark (213.80.149.236)
	by t-k.ru with TeleMail/2 id 1083119965-78668
	for cpressey@catseye.mine.nu; Wed, 28 Apr 06:39:25 2004 +0400 (MSD)
Received: by shark (Postfix, from userid 1000)
	id 7E4E8248; Wed, 28 Apr 2004 06:39:21 +0400 (MSD)
Date: Wed, 28 Apr 2004 06:39:20 +0400
From: Sergey Zaharchenko <doublef@tele-kom.ru>
To: Dag-Erling =?utf-8?B?U23QrHJncmF2?= <des@des.no>
Message-ID: <20040428023920.GA382@Shark.localdomain>
References: <20040425215837.3f4708fe.cpressey@catseye.mine.nu>
	<20040426094335.GA7578@online.fr> <20040426115842.GA4144@Shark.localdomain>
	<xzphdv5wq2q.fsf@dwp.des.no> <20040427160737.GA1325@Shark.localdomain>
	<xzpr7u918jv.fsf@dwp.des.no>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="82I3+IH0IqGh5yIs"
Content-Disposition: inline
In-Reply-To: <xzpr7u918jv.fsf@dwp.des.no>
User-Agent: Mutt/1.4.2.1i
cc: Rahul Siddharthan <rsidd@online.fr>
cc: Sergey Zaharchenko <doublef@tele-kom.ru>
cc: Chris Pressey <cpressey@catseye.mine.nu>
cc: chat@freebsd.org
Subject: Re: Beginning C++ in FreeBSD
X-BeenThere: freebsd-chat@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Non technical items related to the community
	<freebsd-chat.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-chat>,
	<mailto:freebsd-chat-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-chat>
List-Post: <mailto:freebsd-chat@freebsd.org>
List-Help: <mailto:freebsd-chat-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-chat>,
	<mailto:freebsd-chat-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 28 Apr 2004 02:39:29 -0000


--82I3+IH0IqGh5yIs
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Apr 27, 2004 at 10:15:48PM +0200,
 Dag-Erling Sm=D0=ACrgrav probably wrote:
> Sergey Zaharchenko <doublef@tele-kom.ru> writes:
> > Sorry? I mean, you've got the object file, and can compile a shared
> > library which will advertize itself, with the former, whereas the
> > latter, as you've pointed out, doesn't compile.
>=20
> neither does the former, with a proper compiler:
>=20
> % g++ -o /dev/null -c a.cc
> a.cc: In constructor `A::A()':
> a.cc:11: error: `cout' undeclared (first use this function)
> a.cc:11: error: (Each undeclared identifier is reported only once for each
>    function it appears in.)
> a.cc:11: error: `endl' undeclared (first use this function)
>=20
> you're missing "using namespace std;" at the top.

The fact that I forgot it doesn't mean what I'm trying to show you isn't
true; add it and see what happens (you can also add -static to the
cmdline).

>=20
> > A quick hint: Turing has nothing to do with all this...
>=20
> Yes, he does; you just don't understand him.
>=20

If the thesis sounds like

> Any algorithm that can be written in one Turing-complete language can
> be written in another Turing-complete language.

then I think I understand it.

In the functional way (`what it can do') C is not different from C++, as
you all are pointing out (so I'm not trying to persuade you Turing was
wrong). It's different in what it allows you to inform the system (the
linker, for instance) about (and it will learn that *before* any actual
algorithm of yours is executed).

> DES
> --=20
> Dag-Erling Sm?rgrav - des@des.no
> _______________________________________________
> freebsd-chat@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-chat
> To unsubscribe, send any mail to "freebsd-chat-unsubscribe@freebsd.org"
>=20

--=20
DoubleF
Power corrupts.  Powerpoint corrupts absolutely.
		-- Vint Cerf

--82I3+IH0IqGh5yIs
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAjxlXwo7hT/9lVdwRAlihAJwM39qtbVAtdJHgrKG2enRjaccB6QCfRJSM
GL6ZYxUu6MmanmyC0SAp0UY=
=yzME
-----END PGP SIGNATURE-----

--82I3+IH0IqGh5yIs--