comp.lang.ada
 help / color / mirror / Atom feed
From: dweller@dfw.net (David Weller)
Subject: Re: C++ templates vs. Ada generics?
Date: 1996/06/20
Date: 1996-06-20T00:00:00+00:00	[thread overview]
Message-ID: <4qc3re$ot5@dfw.dfw.net> (raw)
In-Reply-To: 4qbtid$bsq@map.mda.ca


In article <4qbtid$bsq@map.mda.ca>, Ray Blaak <blaak@mda.ca> wrote:
>Dale Stanbrough <dale@goanna.cs.rmit.EDU.AU> writes:
>>[...] does anyone have any examples of what can be
>>achieved in C++ templates, but not Ada generics?
>On the fly instantiations (i.e. as a parameter to a function). Technically this
>does not provide any extra ability, but it can be wonderfully succinct,
>especially for one-time uses of the instantiation.
>


Hmm, I don't understand how you _can't_ do this.  Admittedly, I'd have
to enclose it in a block, but that's trivial compared to the "Butt
Ugly" syntax of C++ templates (you may quote me :-)

-- 
    Visit the Ada 95 Booch Components Homepage: www.ocsystems.com/booch
           This is not your father's Ada -- lglwww.epfl.ch/Ada




      reply	other threads:[~1996-06-20  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-20  0:00 C++ templates vs. Ada generics? Dale Stanbrough
1996-06-20  0:00 ` Ray Blaak
1996-06-20  0:00   ` David Weller [this message]
replies disabled

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