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,c8fd02a2b1be456a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1995-02-23 06:59:24 PST Path: nntp.gmd.de!news.rwth-aachen.de!news.rhrz.uni-bonn.de!news.uni-stuttgart.de!rz.uni-karlsruhe.de!xlink.net!sol.ctr.columbia.edu!newsxfer.itd.umich.edu!gumby!yale!zip.eecs.umich.edu!newshost.marcam.com!news.mathworks.com!panix!cmcl2!thecourier.cims.nyu.edu!thecourier.cims.nyu.edu!nobody From: comar@cs.nyu.edu (Cyrille Comar) Newsgroups: comp.lang.ada Subject: Re: Type extension with GNAT Date: 23 Feb 1995 09:59:24 -0500 Organization: Courant Institute of Mathematical Sciences Distribution: usa Message-ID: <3ii7sc$ns1@lang8.cs.nyu.edu> References: <3iguhr$ai4@gnat.cs.nyu.edu> NNTP-Posting-Host: lang8.cs.nyu.edu Date: 1995-02-23T09:59:24-05:00 List-Id: dewar@cs.nyu.edu (Robert Dewar) writes: : I disagree with Robert Eachus' complaint about overloading and overriding. : The critical point here is that constructors of this type should not : be made primitive. THAT's the solution, and that's what we shold teach : people to understand. Since this bug will be done and redone by every single Ada95 beginner we ought to treat it specially in GNAT. I don't see a significantly better error message that would solve the problem so maybe what we could do is to add an additionnal message: See file "Gnat_Common_Mistakes" paragraph "inheriting functions" and provide some more detailed explanation on this problem in the specified file. How does it sound? -- ------------------------------------------------------------------------ Cyrille Comar, E-mail: comar@cs.nyu.edu Gnat Project US phone: (212) 998-3489