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,6009c73a58f787a0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-01-16 12:34:16 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!world!news From: Robert A Duff Subject: Re: How to avoid unreferenced objects (mutexes etc) Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Wed, 16 Jan 2002 20:28:35 GMT References: <3c3ee8c8.105408250@News.CIS.DFN.DE> <3c429d1c.2624281@News.CIS.DFN.DE> <3c45865f.2709203@News.CIS.DFN.DE> NNTP-Posting-Host: shell01.theworld.com Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:18980 Date: 2002-01-16T20:28:35+00:00 List-Id: dmitry@elros.cbb-automation.de (Dmitry A. Kazakov) writes: > However, I always wished Ada having an ability to disallow primitive > operations. Like: > > type Unordered is new Integer; > function ">" (Left, Right : Unordered) is abstract; -- Disallow ">" Umm, isn't that legal? And does it not disallow calls to ">"? Of course, it's a pain to list all the operations you *don't* want -- I'd rather it be the other way 'round. > The difference is that with a driver you always know the interface: > Open/Read/Write/Close. And ioctl, which is 37-to-50 different operations wrapped up in one, different for each driver. ;-) - Bob