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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: operation can be dispatching in only one type Date: Tue, 24 Nov 2015 14:48:24 -0700 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <04eb6626-644b-4b16-a329-c35659a9fbe2@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Injection-Date: Tue, 24 Nov 2015 21:46:04 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="caa759af2a9c666aec02942f6fe5abd6"; logging-data="29526"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19176JhBzUsBpFlJIW1F9pfVWUzC4VJ9s4=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: X-Mozilla-News-Host: news://freenews.netfront.net Cancel-Lock: sha1:69+u6FsTuN6Ic9WWm7PNdNIKF1E= Xref: news.eternal-september.org comp.lang.ada:28530 Date: 2015-11-24T14:48:24-07:00 List-Id: On 11/24/2015 01:25 PM, Niklas Holsti wrote: > On 15-11-24 19:09 , Jeffrey R. Carter wrote: > >> Note that the Ada construct that most closely matches a "class" is a protected >> type. > > Huh? What have mutual exclusion and interrupt-handling to do with "class"? Nothing. > Ok, some languages have "synchronized" classes, mixing the two concepts. > > Perhaps you mean that there is a syntactic resemblance, in that the operations > and data of a protected type are indeed enclosed in dedicated "is" .. "end" > brackets? I mean that a protected type defines a set of values and operations on those values, encapsulates the values and operations, and hides the implementation of the values. -- Jeff Carter "Whatever it is, I'm against it." Horse Feathers 46