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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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 16:52:55 PST Path: supernews.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.stanford.edu!arclight.uoregon.edu!newsfeed.ksu.edu!nntp.ksu.edu!news.okstate.edu!dvdeug From: dvdeug@x8b4e53cd.dhcp.okstate.edu (David Starner) Newsgroups: comp.lang.ada Subject: Re: Generics - Difference between ADA and Modula--3 Date: 5 Feb 2001 23:50:53 GMT Organization: Oklahoma State University Message-ID: <95ne8t$9281@news.cis.okstate.edu> References: <3a7646fb$1@rsl2.rslnet.net> <956ols$qtv$1@news.cis.ohio-state.edu> <95eumd$8i41@news.cis.okstate.edu> <95nc12$62m$1@usenet.rational.com> Reply-To: dstarner98@aasaa.ofe.org NNTP-Posting-Host: x8b4e5089.dhcp.okstate.edu User-Agent: slrn/0.9.6.3 (Linux) Xref: supernews.google.com comp.lang.ada:4956 Date: 2001-02-05T23:50:53+00:00 List-Id: On Mon, 5 Feb 2001 15:12:20 -0800, Mark Lundquist wrote: >> 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? type A is {Alpha, Beta, Gamma}; type B is {Alpha, Beta, Gamma}; type C is access A; type D is access B; type E is branded access A; type F is branded access A; In Ada, A, B, C, D, E and F are different types. In Modula 3, A & B are the same type (because they have the same expanded form), and C & D are the same type. However, E and F are distinct from each other and C and D, because of the brands. -- David Starner - dstarner98@aasaa.ofe.org Pointless website: http://dvdeug.dhis.org "I don't care if Bill personally has my name and reads my email and laughs at me. In fact, I'd be rather honored." - Joseph_Greg