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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f6b6181765c24743 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-05 15:15:56 PST Path: supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!xfer13.netnews.com!netnews.com!news-feed.fnsi.net!nntp.msen.com!uunet!sac.uu.net!usenet.rational.com!not-for-mail From: "Mark Lundquist" Newsgroups: comp.lang.ada Subject: Re: Generics - Difference between ADA and Modula--3 Date: Mon, 5 Feb 2001 15:12:20 -0800 Organization: Rational Software Message-ID: <95nc12$62m$1@usenet.rational.com> References: <3a7646fb$1@rsl2.rslnet.net> <956ols$qtv$1@news.cis.ohio-state.edu> <95eumd$8i41@news.cis.okstate.edu> NNTP-Posting-Host: ext-1078.rational.com X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Xref: supernews.google.com comp.lang.ada:4952 Date: 2001-02-05T15:12:20-08:00 List-Id: David Starner wrote in message news:95eumd$8i41@news.cis.okstate.edu... > > > >General comparison between Modula-3 and Ada would be interesting, > >actually. (-: > > Like what? I can give a short overview, but I'm not sure it will > be helpful. It's helpful to me, since I don't know Modula-3 at all :-) >[...] > Ada designers made perfectly type-safe generics. Modula-3 designers looked > at Ada generics and C++ templates and decided the Ada generics were too much > of a PITA and went with a C++-style design that catches mistakes at link-time > rather than compile-time. Oh yeah... link-time errors, no pain there... :-) > [...] > Modula-3 compares types by value instead of by name, and introduces brands > to compensate for that. > What does this mean? Can you explain this one some more? Thanks, Mark