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,52fd60a337c05842 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-06-17 03:14:26 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!fu-berlin.de!uni-berlin.de!dialin-145-254-041-111.arcor-ip.NET!not-for-mail From: Dmitry A.Kazakov Newsgroups: comp.lang.ada Subject: Re: ada paper critic Date: Tue, 18 Jun 2002 00:19:43 +0200 Message-ID: References: <3D0A075F.482703FE@san.rr.com> <3D0D5EBE.6B57A443@san.rr.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: dialin-145-254-041-111.arcor-ip.net (145.254.41.111) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: fu-berlin.de 1024308865 7911097 145.254.41.111 (16 [77047]) User-Agent: KNode/0.4 Xref: archiver1.google.com comp.lang.ada:26134 Date: 2002-06-18T00:19:43+02:00 List-Id: Darren New wrote: > "Dmitry A.Kazakov" wrote: >> I do not know Java good enough to judge. But the problems as I see them >> are mostly with MD and MI. Java has no MD. Ada has neigher. But if it >> had, how to call on an entry point that belongs to two protected objects, >> or else tasks? > > If I understand what you're saying, this isn't a problem in Java because > Java uses distinguished-receiver notation. > > A.do_it(b) or B.do_it(a). There cannot be a distinguished receiver with MD. If both arguments are dispatching which one is distinguished? Then if an entry belongs to TWO tasks, it means that rendezvous happens with BOTH of them. As I said I do not know Java, but I am pretty sure that it does not have such a thing. >> What about freezing rules with MD? May I override barriers? How to >> override the body an entry point of a task? How to inherit an entry >> point? How to add a new entry point? > > None of these are problems, because Java doesn't work it the same way that > Ada does. That is what I meant. Other languages simply did not attemted to integrate tasks and protected objects as deep and consistently as Ada does. So they have no problems like that. Which only means that it is a poor programmer, who shall solve them. -- Regards, Dmitry Kazakov www.dmitry-kazakov.de