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,fce663eaf40b52f6 X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news1.google.com!newshub.sdsu.edu!newshosting.com!nx01.iad01.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Manifesto against Vector Date: 07 May 2004 20:15:00 +0100 Organization: Pushface Sender: simon@smaug.pushface.org Message-ID: References: <99cf7c.293.ln@skymaster> <8sQmc.11414$V97.6807@newsread1.news.pas.earthlink.net> NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1083957570 22550 62.49.19.209 (7 May 2004 19:19:30 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Fri, 7 May 2004 19:19:30 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Xref: controlnews3.google.com comp.lang.ada:378 Date: 2004-05-07T20:15:00+01:00 List-Id: Jeffrey Carter writes: > To my way of thinking, you depend on any types you may have objects > of and anything you may invoke. A derived type is not the same type > as its parent, nor are its operations the same as its parent's > operations. Since type extension is a form of type derivation, I > apply the same rules to type extension that I did to type derivation > in Ada 83: the parent must be either a predefined type, or a type > declared in the same declarative region as the child. Anything else > quickly becomes unreadable. A(n abstract) parent, and its operations, define a contract that extensions must obey. I guess it's like recursion, at some point you just have to take things on trust. -- Simon Wright 100% Ada, no bugs.