Skip site navigation (1)Skip section navigation (2)
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>
Cc:        chat@freebsd.org
Subject:   Re: Beginning C++ in FreeBSD
Message-ID:  <20040428023920.GA382@Shark.localdomain>
In-Reply-To: <xzpr7u918jv.fsf@dwp.des.no>
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>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040428023920.GA382>