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-Thread: 103376,782af4edeb84c4b7 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: basic basic ada question Date: Mon, 23 Oct 2006 11:49:17 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1161268231.345231.242170@m73g2000cwd.googlegroups.com> <4537bc65_1@newsfeed.slurp.net> <5567b72ia0c9$.1b6yl0tpfscj5$.dlg@40tude.net> <13bxqw4vydm93$.vlnod0hnsogo.dlg@40tude.net> <2lh16y6eetpr.174c6t4885tws$.dlg@40tude.net> <1003e77ytohm0$.1kiriiggzo76m.dlg@40tude.net> <1anu82k75pz5r.1ca9f66hmzfqg$.dlg@40tude.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1161618557 10512 192.74.137.71 (23 Oct 2006 15:49:17 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Mon, 23 Oct 2006 15:49:17 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:eQjx4goCBKb7+NTOPglpx4RAioA= Xref: g2news2.google.com comp.lang.ada:7166 Date: 2006-10-23T11:49:17-04:00 List-Id: "Dmitry A. Kazakov" writes: > type T is abstract ...; > function Greeting_Message return String is abstract; I presume the above is supposed to say (X : T), right? If so, I don't see anything illegal here. > procedure Initialize (X : in out T) is > begin > Put_Line ("Hi," & Greeting_Message (T'Class (X))); -- Illegal! > end Initialize; > > type S is new T with ...; > function Greeting_Message return String is > begin > return "I am T!"; > end Greeting_Message; - Bob