From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ec2100175200a223 X-Google-Attributes: gid103376,public From: dweller@dfw.net (David Weller) Subject: Re: C++ templates vs. Ada generics? Date: 1996/06/20 Message-ID: <4qc3re$ot5@dfw.dfw.net>#1/1 X-Deja-AN: 161236629 references: <4qa7or$qlm@goanna.cs.rmit.EDU.AU> <4qbtid$bsq@map.mda.ca> organization: DFWNet -- Public Internet Access newsgroups: comp.lang.ada Date: 1996-06-20T00:00:00+00:00 List-Id: In article <4qbtid$bsq@map.mda.ca>, Ray Blaak wrote: >Dale Stanbrough 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