comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Sharing generic bodies across instantiations.
Date: Thu, 29 Jul 2010 09:46:08 +0200
Date: 2010-07-29T09:46:08+02:00	[thread overview]
Message-ID: <1ujahmhp6ucu6$.uy1rnhhnrxx0$.dlg@40tude.net> (raw)
In-Reply-To: lnk4ofxtnc.fsf@nuthaus.mib.org

On Wed, 28 Jul 2010 13:01:43 -0700, Keith Thompson wrote:

> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
>> On Wed, 28 Jul 2010 05:55:36 -0700 (PDT), Maciej Sobczak wrote:
>>
>>> On 28 Lip, 11:28, "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
>>> wrote:
>>> 
>>>>>> That is, the nature of C++ essentially requires a
>>>>>> replication strategy.
>>>>
>>>>> Why? What part of that "nature" requires it?
>>>>
>>>> Macro's nature
>>> 
>>> Wrong. Macros have nothing to do with templates.
>>
>> They have the nature of source level uncontrolled and untyped substitution
>> and reinterpretation.
> 
> Macros do.  Templates don't.

They do. The only limit put on the substitution is that the
reinterpretation does not fail. There are no traces of any semantics in the
declaration of the template parameters.

Generics suffer this too, but to a lesser extent.

>>> A C++ or Ada interpreter can be fully standard-compliant, which makes
>>> it a very valid "starter" in this context.
>>
>> Interpreter does not qualify as a compiler, per definition of both. You
>> might say that apple is as edible as orange, but that would not make it
>> orange in the context of the greengrocery.
> 
> Apples and oranges are both fruits.

So what? You don't pay for apples when buy oranges.

> Compilers and interpreters are both implementations.

It is about the implementation to take. The question was about shared
implementation of generics. Certainly, expanded implementations do
implement generics, or at least we hope so...
 
-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2010-07-29  7:46 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-27  0:51 Sharing generic bodies across instantiations Peter C. Chapin
2010-07-27  3:01 ` Gene
2010-07-27  6:55 ` AdaMagica
2010-07-27 11:29   ` Ludovic Brenta
2010-07-27 14:10     ` Tero Koskinen
2010-07-27 10:51 ` Martin
2010-07-27 20:06 ` anon
2010-07-27 22:23   ` Peter C. Chapin
2010-07-28  7:59     ` Maciej Sobczak
2010-07-28  9:28       ` Dmitry A. Kazakov
2010-07-28 12:55         ` Maciej Sobczak
2010-07-28 13:16           ` Dmitry A. Kazakov
2010-07-28 19:48             ` Maciej Sobczak
2010-07-29  8:03               ` Dmitry A. Kazakov
2010-07-29 14:02                 ` Maciej Sobczak
2010-07-29 14:40                   ` Dmitry A. Kazakov
2010-07-29 20:27                     ` Maciej Sobczak
2010-07-30  9:09                       ` Dmitry A. Kazakov
2010-07-30 12:31                         ` Maciej Sobczak
2010-07-30 14:59                           ` Dmitry A. Kazakov
2010-08-03  3:02                           ` Randy Brukardt
2010-08-03 14:37                             ` Robert A Duff
2010-08-03  2:47                         ` Randy Brukardt
2010-07-28 20:01             ` Keith Thompson
2010-07-29  7:46               ` Dmitry A. Kazakov [this message]
2010-07-28 11:27       ` Peter C. Chapin
2010-07-28 13:10         ` Maciej Sobczak
2010-07-28 16:32           ` Peter C. Chapin
2010-07-28 19:30             ` Robert A Duff
2010-07-28 20:03             ` Maciej Sobczak
2010-07-28 11:47     ` anon
2010-08-03  2:38     ` Randy Brukardt
2010-08-03 14:31       ` Robert A Duff
2010-07-28  0:55   ` Keith Thompson
2010-07-28  8:42     ` Markus Schoepflin
2010-07-28 11:16     ` anon
replies disabled

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