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.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e94a7e4f6f888766 X-Google-Attributes: gid103376,public From: "Vladimir Olensky" Subject: Re: Self-referential types Date: 1999/10/13 Message-ID: #1/1 X-Deja-AN: 535957587 References: <7ttb4a$8mq$1@nnrp1.deja.com> <3802f2db_2@news1.prserv.net> <7tvq5g$28u$1@nnrp1.deja.com> Organization: Posted via Supernews, http://www.supernews.com X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: comp.lang.ada X-Complaints-To: newsabuse@supernews.com Date: 1999-10-13T00:00:00+00:00 List-Id: Ted Dennison wrote in message <7tvq5g$28u$1@nnrp1.deja.com>... >In article , > "news.oxy.com" wrote: >> >> Matthew Heaney wrote in message <3802f2db_2@news1.prserv.net>... >> >This is the basis for programming with access discriminants, which is >> >how you do MI in Ada95. >> You might put a short article regarding this issue to Adapower. >> I am sure it will be very useful. > >I'd like to heartily second that one. I tried every resource I could >find to figure this out before I resorted to c.l.a. The example in >Cohen's book is wrong, and he doesn't address its use in MI at all. The >rationale just talks about it but doesn't put up any examples. I >couldn't even find anything in the LRM that said this was legal after >over an hour of searching. It'd be a shame if the only real >documentation of this technique was word of mouth. I think that the first part of it could explain why in Ada there is no SELF or THIS parameter ( which object instance can use to obtain reference to itself in other languages) and their equivalent constructs in Ada (and also what is similar and what is different in Ada and other languages regarding that issue). When this clear than other part may discuss more advanced topics such as MI implementation. Doing it this way may help people experienced in other languages or people beginning to learn Ada to grasp the idea without any additional strain. Comparison always help in introducing things that are not very familiar to others. Also if that is easy to understand then there would be less causes for some people to tell that Ada is too complicated/complex language that only military could like. Regards, Vladimir Olensky.