comp.lang.ada
 help / color / mirror / Atom feed
From: Hyman Rosen <hyrosen@mail.com>
Subject: Re: A curiosity...
Date: Fri, 05 Dec 2008 10:15:35 -0500
Date: 2008-12-05T10:15:35-05:00	[thread overview]
Message-ID: <rAb_k.14427$M33.2025@newsfe03.iad> (raw)
In-Reply-To: <op.uloxhzm7z25lew@macpro.krischik.com>

Martin Krischik wrote:
> The real problem is that most C programmers don't know that.

The semantics of conversion between pointer and integer are
defined by the implementation. There's no law that says that
C programs must be written to be portable. It's acceptable
to use implementation-specific behavior and knowledge of the
architecture if that's what you want, especially when the
architectures that are different enough to matter are as rare
as hen's teeth.

No argument, though, that C and C++ ate unsafe by default.



  reply	other threads:[~2008-12-05 15:15 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-04 20:47 A curiosity mockturtle
2008-12-04 21:17 ` Adam Beneschan
2008-12-04 21:48   ` Hyman Rosen
2008-12-04 22:04     ` Ludovic Brenta
2008-12-04 22:10       ` Ludovic Brenta
2008-12-04 22:24         ` Hyman Rosen
2008-12-05  8:02         ` Samuel Tardieu
2008-12-05 11:51           ` Peter C. Chapin
2008-12-05 13:09           ` Martin Krischik
2008-12-05 15:15             ` Hyman Rosen [this message]
2008-12-06 13:26             ` Peter C. Chapin
2008-12-05 16:37           ` Keith Thompson
2008-12-04 22:19       ` Hyman Rosen
2008-12-05  9:03       ` Georg Bauhaus
2008-12-04 22:30 ` Randy Brukardt
2008-12-04 22:57   ` Hyman Rosen
2008-12-05 16:42     ` Keith Thompson
2008-12-05 16:57       ` Hyman Rosen
2008-12-05 20:20         ` Keith Thompson
2008-12-05 20:59           ` Adam Beneschan
2008-12-06 22:53             ` Hyman Rosen
2008-12-06 23:15               ` Gary Scott
2008-12-08 15:39                 ` Hyman Rosen
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox