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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.156.66 with SMTP id wc2mr648704pab.23.1399366095932; Tue, 06 May 2014 01:48:15 -0700 (PDT) X-Received: by 10.140.50.83 with SMTP id r77mr124366qga.15.1399366095843; Tue, 06 May 2014 01:48:15 -0700 (PDT) Path: border2.nntp.dca.giganews.com!nntp.giganews.com!c1no1951489igq.0!news-out.google.com!du2ni23242qab.0!nntp.google.com!hw13no665933qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 6 May 2014 01:48:15 -0700 (PDT) In-Reply-To: <83ha6vuynrzs.1jk08faxb8mnl.dlg@40tude.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=155.210.218.122; posting-account=pwYQiQkAAAA3aYJLpu5F4Anl_UXMyGLQ NNTP-Posting-Host: 155.210.218.122 References: <7403d130-8b42-43cd-a0f1-53ba34b46141@googlegroups.com> <6c2cd5d4-a44c-4c18-81a3-a0e87d25cd9e@googlegroups.com> <83ha6vuynrzs.1jk08faxb8mnl.dlg@40tude.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <97a0996a-a593-4990-95e9-44f4e9070fd3@googlegroups.com> Subject: Re: Safety of unprotected concurrent operations on constant objects From: "Alejandro R. Mosteo" Injection-Date: Tue, 06 May 2014 08:48:15 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: number.nntp.dca.giganews.com comp.lang.ada:186259 Date: 2014-05-06T01:48:15-07:00 List-Id: On Tuesday, May 6, 2014 10:11:07 AM UTC+2, Dmitry A. Kazakov wrote: > > If you limit it to primitive operations then much simpler to do this: > > type My_Container is tagged ...; -- All operations are unsafe > > type My_Safe_Container is protected new My_Container with null record; Ah, how have I longed for such a feature... > > -- > > Regards, > > Dmitry A. Kazakov > > http://www.dmitry-kazakov.de