comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: Ada Generic vs. C++ Templates
Date: Mon, 02 Apr 2001 21:26:12 GMT
Date: 2001-04-02T21:26:12+00:00	[thread overview]
Message-ID: <U76y6.63$jz.1782@www.newsranger.com> (raw)
In-Reply-To: 3AC8E799.189EE51C@bigfoot.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1792 bytes --]

In article <3AC8E799.189EE51C@bigfoot.com>, Francois Godme says...
>
>Ted Dennison a �crit :
>
>> all seem to implement templates differently. The Mozilla developers have 
>> gone so far as to ban the use of templates for this reason (in fact, its 
>> rule #1 in their portability guide). See
>> http://www.mozilla.org/hacking/portable-cpp.html#dont_use_templates . One 
>> could say that for code meant to be portable, C++ templates have no power at 
>> all, as they can't be used. :-)
>
>In my daily work, we develop C++ templates code which compiles and runs the 
>same on two different platforms namely Visual C++ 6.0 on NT and aCC on HP-UX. 

What you are saying is that you have found an environment where the templates
you happen to use work for two specific compilers. That says nothing about what
would happen if one day you (or your marketing department) suddenly discovered a
need to port your entire codebase to a third system which you have not designed
your code against. Unless the Mozilla developers are lying (which I doubt), it
appears that it is quite possible that you'll run aground on a compiler that
does not support your templates.

>I am not saying that all the implementations are perfect but that they are 
>mature enough to be of a practical use in a commercial environment.

I didn't say they weren't of practical use. I just said they are not a feature
that can be counted on to be portable; at least not according to Mozilla. Their
website was quite recently updated, and still includes the template prohibition
as rule #1. Since they run the most ported public application that I know of,
I'm inclined to bow to their experience.

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html
          home email - mailto:dennison@telepath.com



  reply	other threads:[~2001-04-02 21:26 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-02 14:28 Ada Generic vs. C++ Templates Josef Widder
2001-04-02 14:38 ` Ted Dennison
2001-04-02 20:57   ` Francois Godme
2001-04-02 21:26     ` Ted Dennison [this message]
2001-04-03  0:53       ` David Starner
2001-04-04  7:12         ` Pascal Obry
2001-04-04 12:37         ` Stephen Leake
2001-04-04 14:16         ` Ted Dennison
2001-04-03 22:09       ` Francois Godme
2001-04-04 16:17         ` Brian Rogoff
2001-04-04 16:21         ` Jeffrey Carter
2001-04-04 16:49           ` Ayende Rahien
2001-04-05 22:31             ` Colin Paul Gloster
2001-04-04 16:56           ` Ted Dennison
2001-04-04 17:02             ` Ayende Rahien
2001-04-05  0:35         ` James Rogers
2001-04-05  3:38           ` DuckE
2001-04-05 14:25             ` Marin David Condic
2001-04-05 20:32               ` Robert A Duff
2001-04-05 21:04                 ` Marin David Condic
2001-04-06 16:19                   ` Robert A Duff
2001-04-06  0:37             ` James Rogers
2001-04-06 10:38               ` Colin Paul Gloster
2001-04-11  3:33                 ` Stephen Howe
2001-04-11 14:33                   ` Colin Paul Gloster
2001-04-04 13:24 ` Georg Bauhaus
2001-04-05  8:46   ` Jean-Marc Bourguet
2001-04-04 17:30 ` Ehud Lamm
2001-04-05 22:04   ` Colin Paul Gloster
2001-04-10  7:03     ` Simon Wright
2001-04-13 14:11       ` Pat Rogers
2001-04-17  8:27         ` Colin Paul Gloster
2001-04-08  5:00 ` Lao Xiao Hai
replies disabled

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