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,9d303864ae4c70ad X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-04-09 19:28:53 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: wojtek@power.com.pl (Wojtek Narczynski) Newsgroups: comp.lang.ada Subject: Re: Reprise: 'in out' parameters for functions Date: 9 Apr 2004 19:28:52 -0700 Organization: http://groups.google.com Message-ID: <5ad0dd8a.0404091828.6e79bb4e@posting.google.com> References: <5ad0dd8a.0404090512.15af2908@posting.google.com> NNTP-Posting-Host: 83.27.22.36 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1081564133 29657 127.0.0.1 (10 Apr 2004 02:28:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 10 Apr 2004 02:28:53 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:6936 Date: 2004-04-09T19:28:52-07:00 List-Id: Hello, > I take it Ada forces abstraction in version in cases? > Could you name an example unit to look at? 'Inversion' not 'in version' incase it were more than a typo. When you implement a semaphore over a protected object, or in general when you need to lock / unlock by yourself. Classic example: polyorb-tasking-profiles-full_tasking-mutexes.adb Or try to implement tree crabbing. Hell, try to implement a list updateable concurrently from multiple tasks. You _will_ end up implementing a semaphore over a protected, over a semaphore. Or the simplest possible: two protected counters, try to get the sum atomically. > : type system unable > : to express physical units, > > Still, you might have > > type Quantity is abstract tagged private; > > function in_meters (x: Quantity) return Units.meter; > function in_yards (x: Quantity) return Units.yard; > -- etc... Sure, let us continue: function in_kilograms (x: Quantity) return Units.yard; -- Blows at runtime This just cannot be done right in Ada. > : But the problem real problem IMO is that > : the development of the language has stagnated. > > What's missing? >From the language? For example parameters for exceptions. Regards, Wojtek