comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Ada generics
Date: Tue, 26 Dec 2006 20:28:36 +0100
Date: 2006-12-26T20:28:32+01:00	[thread overview]
Message-ID: <1qmdvus6du3xu.1n21tzgev46ia$.dlg@40tude.net> (raw)
In-Reply-To: 1167150212.165097.289010@73g2000cwn.googlegroups.com

On 26 Dec 2006 08:23:32 -0800, Hyman Rosen wrote:

> Dmitry A. Kazakov wrote:
>> When you compare values of potentially different objects instead, then
>> the semantics of the comparison is not necessarily identity. In fact, it is
>> outside the language.
> 
> I think the issue here is not unlike that faced by programming
> languages when dealing with Unicode in identifiers. (I took a quick
> glance through AI-285.) There are potentially several ways that a
> character can be written in the source text, and the compilers must
> decide what it is that is written, and which forms must be considered
> identical and which distinct.

I didn't look at the AI, but it is definitely a different problem. The
language should be defined in terms of code points. The encoding of is
irrelevant. When some sequences of code points (=words) are considered
equivalent in the language like | and ! are in Ada, that is not yet
matching by structure. It were if Ada would be defined in terms of glyphs.
Fortunately it is not.

> There is certainly no problem in defining
> by fiat the semantics for doing template floating-point arithmetic, but
> the committee didn't think it was worth the effort. It's the sort of
> thing that Ada goes through with its universal floats, but at least
> there the application is of wider use.

We are talking not about floats, but about the principle of matching by
content. There is no any chance to hold on it:

   template <p> void foo<HALT(p)> ...

>> I don't see what systems programming has to do with templates.
> 
> C++ was written as an enhancement for people already using C. It gave
> those people a great deal of extra expressive power, but they would not
> have given up what they already had.

This is a different statement, which sounds a bit silly in the context of
the thread. Basically it is - many who learned C as the first language were
so devastated by this experience, so it would be just inhumane to ask them
to lean anything else. For this reason they must face that horror time and
again. I cannot judge. I am not a psychoanalytic, nor C was my first. (:-))

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2006-12-26 19:28 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-21 14:14 Ada generics markww
2006-12-21 15:42 ` Dmitry A. Kazakov
2006-12-22  7:59   ` Martin Krischik
2006-12-22 16:14     ` Hyman Rosen
2006-12-22  7:59   ` Martin Krischik
2006-12-22 16:41   ` Hyman Rosen
2006-12-22 17:33     ` Markus E Leypold
2006-12-22 18:26       ` Hyman Rosen
2006-12-22 20:59         ` Markus E Leypold
2006-12-22 21:01           ` Markus E Leypold
2006-12-23 14:09           ` Marco
2006-12-25 14:23             ` Hyman Rosen
2006-12-29 14:13               ` Marco
2006-12-25 14:20           ` Hyman Rosen
2006-12-23 11:43     ` Dmitry A. Kazakov
2006-12-25 13:49       ` Hyman Rosen
2006-12-25 14:39         ` Dmitry A. Kazakov
2006-12-26  1:34           ` Hyman Rosen
2006-12-26  9:11             ` Dmitry A. Kazakov
2006-12-26 16:23               ` Hyman Rosen
2006-12-26 19:28                 ` Dmitry A. Kazakov [this message]
2006-12-27  1:44                   ` Hyman Rosen
2006-12-27  9:21                     ` Dmitry A. Kazakov
2006-12-27 19:06                       ` Hyman Rosen
2006-12-28 10:59                         ` Dmitry A. Kazakov
2006-12-28 16:29                           ` Hyman Rosen
2006-12-29 11:12                             ` Dmitry A. Kazakov
2006-12-29 14:56                               ` Hyman Rosen
2006-12-28 17:35                           ` Georg Bauhaus
2006-12-29 14:48                             ` Dmitry A. Kazakov
2006-12-29 19:39                               ` Georg Bauhaus
2006-12-30  9:58                                 ` Dmitry A. Kazakov
2006-12-30 14:53                                   ` Georg Bauhaus
2007-01-01 13:00                                     ` Dmitry A. Kazakov
2007-01-02 10:04                                       ` Georg Bauhaus
2007-01-02 11:11                                         ` Dmitry A. Kazakov
2007-01-02 12:33                                           ` Georg Bauhaus
2007-01-02 13:51                                             ` Dmitry A. Kazakov
2007-01-02 14:45                                               ` Georg Bauhaus
2007-01-03 10:10                                                 ` Dmitry A. Kazakov
2007-01-03 14:20                                                   ` Hyman Rosen
2007-01-03 14:55                                                   ` Georg Bauhaus
2007-01-04 10:15                                                     ` Dmitry A. Kazakov
2007-01-03 19:33                                           ` Alexander E. Kopilovich
2007-01-04 10:27                                             ` Dmitry A. Kazakov
2007-01-04 15:00                                               ` Alexander E. Kopilovich
2007-01-05 10:32                                                 ` Dmitry A. Kazakov
2006-12-30  2:25                               ` Randy Brukardt
2006-12-30 10:13                                 ` Dmitry A. Kazakov
2007-01-04  1:09                                   ` Randy Brukardt
2007-01-04 10:07                                     ` Dmitry A. Kazakov
2007-01-05  1:32                                       ` Randy Brukardt
2007-01-05  4:46                                         ` Randy Brukardt
2007-01-05  9:08                                         ` Jean-Pierre Rosen
2007-01-05 20:14                                         ` Georg Bauhaus
2007-01-06  0:14                                           ` Randy Brukardt
2006-12-29  0:09                           ` Randy Brukardt
2006-12-29 11:11                             ` Dmitry A. Kazakov
2006-12-30  2:40                               ` Randy Brukardt
2006-12-21 16:55 ` Hyman Rosen
2006-12-21 18:22   ` markww
2006-12-22  3:01 ` Steve
replies disabled

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