comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Rogoff <bpr@bpr.best.vwh.net>
Subject: Re: 'Cyclone', a safer C--reinventing the wheel
Date: Tue, 27 Nov 2001 16:51:56 GMT
Date: 2001-11-27T16:51:56+00:00	[thread overview]
Message-ID: <Pine.BSF.4.10.10111271642360.93360-100000@bpr.best.vwh.net> (raw)
In-Reply-To: <0cOM7.85029$XJ4.46127980@news1.sttln1.wa.home.com>

On Tue, 27 Nov 2001, Mark Lundquist wrote:
> "Dmitry A. Kazakov" <dmitry@elros.cbb-automation.de> wrote in message
> news:3c034c88.494656@News.CIS.DFN.DE...
> > On Mon, 26 Nov 2001 10:42:54 GMT, "Mark Lundquist"
> >
> > >I do think that Ada or an Ada-like language should have something like
> > >template specialization / partial specialization in C++.
> >
> > I think it would be better to review tagged types and provide
> > user-written compile-time subroutines to reduce use of generics.
> 
> Actually, template "metaprogramming" doesn't really excite me

I admit, I find it pretty neat, but that's not what I want when I long for 
automatic instantiation. Once you have a combination of type inference and 
overloading its too easy to get non-termination as a feature of type
checking. If I really want template metaprogramming, better to just have 
Lisp style procedural macros. 

> (and I don't think generics should be macros anyway).

As an implementation strategy, its fine, but I agree that generics are a
different beast. 

> I'm interested in template specialization for the purpose for which it
> was originally designed, and also for trait programming.

Yes, and in an Ada like language generics should still obey the contract
model. 

> When you say "review tagged types", is that related, or an entirely
> different concern?  (I remember you were the one who wanted multiple
> dispatch a while back... :-)

MD is a nice feature, and I like it in Lisp/Dylan, but I think its a bit
much for a language like Ada. 

I'm of the opinion that genericity is the part of Ada that could use some 
enhancement. Once Ada gets some Java-like interface capability in its OO 
part, that should be enough. 

-- Brian





  reply	other threads:[~2001-11-27 16:51 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-20 12:36 'Cyclone', a safer C--reinventing the wheel Marc A. Criley
2001-11-20 12:51 ` Peter Amey
2001-11-20 14:45 ` Marin David Condic
2001-11-20 15:31   ` Florian Weimer
2001-11-20 16:22     ` Marin David Condic
2001-11-20 16:47       ` Wes Groleau
2001-11-20 16:30 ` chris.danx
2001-11-20 16:54   ` Wes Groleau
2001-11-20 19:49     ` chris.danx
2001-11-20 21:28       ` Wes Groleau
2001-11-20 22:36         ` Marin David Condic
2001-11-21  9:20       ` Ehud Lamm
2001-11-22  0:32         ` chris.danx
2001-11-22  7:57           ` AG
2001-11-21 12:46       ` Marc A. Criley
2001-11-22 11:46     ` IsraelRT
2001-11-22 12:24       ` Preben Randhol
2001-11-23  9:19         ` Colin Paul Gloster
2001-11-22 16:06       ` chris.danx
2001-11-20 17:18   ` Pascal Obry
2001-11-20 22:21   ` Jeffrey Carter
2001-11-21 14:27     ` Marin David Condic
2001-11-22  9:27     ` chris.danx
2001-11-22 21:41       ` Jeffrey Carter
2001-11-20 17:09 ` Brian Rogoff
2001-11-21  1:50   ` Mike Silva
2001-11-21 22:47     ` Brian Rogoff
2001-11-22  0:00       ` Mark Lundquist
2001-11-22  0:42         ` Brian Rogoff
2001-11-26 10:42           ` Mark Lundquist
2001-11-27  8:28             ` Dmitry A. Kazakov
2001-11-27 15:21               ` Mark Lundquist
2001-11-27 16:51                 ` Brian Rogoff [this message]
2001-11-28 18:23                   ` Mark Lundquist
2001-12-24 15:17                     ` Dmitry A. Kazakov
2001-11-23  6:46       ` Mike Silva
2001-11-23  7:13         ` Brian Rogoff
2001-11-22 11:42 ` IsraelRT
2001-11-22 13:45   ` Marc A. Criley
2001-11-22 17:24     ` Brian Rogoff
2001-11-23 14:53       ` Marc A. Criley
  -- strict thread matches above, loose matches on Subject: below --
2001-11-20 18:37 Gautier Write-only-address
2001-11-20 23:29 Gautier Write-only-address
2001-11-21 15:30 ` Wes Groleau
2001-11-22 13:33 Gautier Write-only-address
2001-11-22 17:04 ` James Rogers
replies disabled

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